mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +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 |";
|
||||
default = ''
|
||||
{
|
||||
{
|
||||
"filetype",
|
||||
colored = true,
|
||||
icon_only = true,
|
||||
icon = { align = 'left' },
|
||||
color = {bg='none', fg='lavender'},
|
||||
},
|
||||
{
|
||||
"filename",
|
||||
color = {bg='none'},
|
||||
|
@ -157,12 +164,19 @@ in {
|
|||
default = ''
|
||||
{
|
||||
{
|
||||
"branch",
|
||||
icon = ' •',
|
||||
separator = {
|
||||
left = '(',
|
||||
right = ')'
|
||||
}
|
||||
"diff",
|
||||
colored = false,
|
||||
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
|
||||
},
|
||||
symbols = {added = '+', modified = '~', removed = '-'}, -- Changes the diff symbols
|
||||
color = {
|
||||
bg='none',
|
||||
fg='lavender'
|
||||
},
|
||||
},
|
||||
}
|
||||
'';
|
||||
|
@ -176,7 +190,7 @@ in {
|
|||
{
|
||||
"diagnostics",
|
||||
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'},
|
||||
},
|
||||
{
|
||||
"filetype",
|
||||
colored = true,
|
||||
icon = { align = 'right' },
|
||||
"branch",
|
||||
icon = ' •',
|
||||
separator = {
|
||||
left = '(',
|
||||
right = ')'
|
||||
},
|
||||
color = {bg='none', fg='lavender'},
|
||||
|
||||
},
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue