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
|
||||
diff_color = {
|
||||
-- Same color values as the general color option can be used here.
|
||||
added = 'DiffAdd', -- Changes the diff's added color
|
||||
modified = 'DiffChange', -- Changes the diff's modified color
|
||||
removed = 'DiffDelete', -- Changes the diff's removed color you
|
||||
added = 'LuaLineDiffAdd', -- Changes the diff's added color
|
||||
modified = 'LuaLineDiffChange', -- Changes the diff's modified color
|
||||
removed = 'LuaLineDiffDelete', -- Changes the diff's removed color you
|
||||
},
|
||||
symbols = {added = '+', modified = '~', removed = '-'}, -- Changes the symbols used by the diff.
|
||||
source = nil, -- A function that works as a data source for diff.
|
||||
|
|
|
@ -19,21 +19,21 @@ local function apply_default_colors(opts)
|
|||
added = {
|
||||
fg = modules.utils.extract_color_from_hllist(
|
||||
'fg',
|
||||
{ 'GitSignsAdd', 'GitGutterAdd', 'DiffAdded', 'DiffAdd' },
|
||||
{ 'LuaLineDiffAdd', 'GitSignsAdd', 'GitGutterAdd', 'DiffAdded', 'DiffAdd' },
|
||||
'#90ee90'
|
||||
),
|
||||
},
|
||||
modified = {
|
||||
fg = modules.utils.extract_color_from_hllist(
|
||||
'fg',
|
||||
{ 'GitSignsChange', 'GitGutterChange', 'DiffChanged', 'DiffChange' },
|
||||
{ 'LuaLineDiffChange', 'GitSignsChange', 'GitGutterChange', 'DiffChanged', 'DiffChange' },
|
||||
'#f0e130'
|
||||
),
|
||||
},
|
||||
removed = {
|
||||
fg = modules.utils.extract_color_from_hllist(
|
||||
'fg',
|
||||
{ 'GitSignsDelete', 'GitGutterDelete', 'DiffRemoved', 'DiffDelete' },
|
||||
{ 'LuaLineDiffDelete', 'GitSignsDelete', 'GitGutterDelete', 'DiffRemoved', 'DiffDelete' },
|
||||
'#ff0038'
|
||||
),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue