Added hlgroup for diff
of lualine (#846)
* added higlightgroups for lualine to allow colorscheme to set colors for lualine * chore: update docs for default diff color change --------- Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
This commit is contained in:
parent
05d78e9fd0
commit
afece9bbf9
@ -582,9 +582,9 @@ sections = {
|
|||||||
colored = true, -- Displays a colored diff status if set to true
|
colored = true, -- Displays a colored diff status if set to true
|
||||||
diff_color = {
|
diff_color = {
|
||||||
-- Same color values as the general color option can be used here.
|
-- Same color values as the general color option can be used here.
|
||||||
added = 'DiffAdd', -- Changes the diff's added color
|
added = 'LuaLineDiffAdd', -- Changes the diff's added color
|
||||||
modified = 'DiffChange', -- Changes the diff's modified color
|
modified = 'LuaLineDiffChange', -- Changes the diff's modified color
|
||||||
removed = 'DiffDelete', -- Changes the diff's removed color you
|
removed = 'LuaLineDiffDelete', -- Changes the diff's removed color you
|
||||||
},
|
},
|
||||||
symbols = {added = '+', modified = '~', removed = '-'}, -- Changes the symbols used by the diff.
|
symbols = {added = '+', modified = '~', removed = '-'}, -- Changes the symbols used by the diff.
|
||||||
source = nil, -- A function that works as a data source for diff.
|
source = nil, -- A function that works as a data source for diff.
|
||||||
|
@ -19,21 +19,21 @@ local function apply_default_colors(opts)
|
|||||||
added = {
|
added = {
|
||||||
fg = modules.utils.extract_color_from_hllist(
|
fg = modules.utils.extract_color_from_hllist(
|
||||||
'fg',
|
'fg',
|
||||||
{ 'GitSignsAdd', 'GitGutterAdd', 'DiffAdded', 'DiffAdd' },
|
{ 'LuaLineDiffAdd', 'GitSignsAdd', 'GitGutterAdd', 'DiffAdded', 'DiffAdd' },
|
||||||
'#90ee90'
|
'#90ee90'
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
modified = {
|
modified = {
|
||||||
fg = modules.utils.extract_color_from_hllist(
|
fg = modules.utils.extract_color_from_hllist(
|
||||||
'fg',
|
'fg',
|
||||||
{ 'GitSignsChange', 'GitGutterChange', 'DiffChanged', 'DiffChange' },
|
{ 'LuaLineDiffChange', 'GitSignsChange', 'GitGutterChange', 'DiffChanged', 'DiffChange' },
|
||||||
'#f0e130'
|
'#f0e130'
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
removed = {
|
removed = {
|
||||||
fg = modules.utils.extract_color_from_hllist(
|
fg = modules.utils.extract_color_from_hllist(
|
||||||
'fg',
|
'fg',
|
||||||
{ 'GitSignsDelete', 'GitGutterDelete', 'DiffRemoved', 'DiffDelete' },
|
{ 'LuaLineDiffDelete', 'GitSignsDelete', 'GitGutterDelete', 'DiffRemoved', 'DiffDelete' },
|
||||||
'#ff0038'
|
'#ff0038'
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user