mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 10:59:49 +01:00
feat: add diff component to lualine
This commit is contained in:
parent
fcf1318c8b
commit
aa8198cb39
1 changed files with 28 additions and 10 deletions
|
@ -142,6 +142,13 @@ in {
|
||||||
description = "active config for: | A | (B) | C X | Y | Z |";
|
description = "active config for: | A | (B) | C X | Y | Z |";
|
||||||
default = ''
|
default = ''
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
"filetype",
|
||||||
|
colored = true,
|
||||||
|
icon_only = true,
|
||||||
|
icon = { align = 'left' },
|
||||||
|
color = {bg='none', fg='lavender'},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"filename",
|
"filename",
|
||||||
color = {bg='none'},
|
color = {bg='none'},
|
||||||
|
@ -157,12 +164,19 @@ in {
|
||||||
default = ''
|
default = ''
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"branch",
|
"diff",
|
||||||
icon = ' •',
|
colored = false,
|
||||||
separator = {
|
diff_color = {
|
||||||
left = '(',
|
-- Same color values as the general color option can be used here.
|
||||||
right = ')'
|
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
|
||||||
|
},
|
||||||
|
symbols = {added = '+', modified = '~', removed = '-'}, -- Changes the diff symbols
|
||||||
|
color = {
|
||||||
|
bg='none',
|
||||||
|
fg='lavender'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
@ -176,7 +190,7 @@ in {
|
||||||
{
|
{
|
||||||
"diagnostics",
|
"diagnostics",
|
||||||
sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'},
|
sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'},
|
||||||
symbols = {error = '', warn = '', info = '', hint = ''}
|
symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
@ -214,10 +228,14 @@ in {
|
||||||
color = {bg='none', fg='lavender'},
|
color = {bg='none', fg='lavender'},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filetype",
|
"branch",
|
||||||
colored = true,
|
icon = ' •',
|
||||||
icon = { align = 'right' },
|
separator = {
|
||||||
|
left = '(',
|
||||||
|
right = ')'
|
||||||
|
},
|
||||||
color = {bg='none', fg='lavender'},
|
color = {bg='none', fg='lavender'},
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue