fixup: fix diff component default colors (#83)

Rationalizes the default colors used by the `diff` component.  These colors are based of the original fork (https://github.com/hoob3rt/lualine.nvim/blob/master/lua/lualine/components/diff.lua#L17-L21), but the assignment differs (so that added defaults to green, modified defaults to orange, and removed defaults to red).
This commit is contained in:
Charly Delay 2021-10-12 14:37:32 +09:00 committed by GitHub
parent 7d15304449
commit babc57c62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@ local default_options = {
symbols = { added = '+', modified = '~', removed = '-' },
diff_color = {
added = {
fg = modules.utils.extract_highlight_colors('DiffAdd', 'fg') or '#f0e130',
fg = modules.utils.extract_highlight_colors('DiffAdd', 'fg') or '#90ee90',
},
modified = {
fg = modules.utils.extract_highlight_colors('DiffChange', 'fg') or '#ff0038',
fg = modules.utils.extract_highlight_colors('DiffChange', 'fg') or '#f0e130',
},
removed = {
fg = modules.utils.extract_highlight_colors('DiffDelete', 'fg') or '#ff0038',