feat: add diff component to lualine

This commit is contained in:
NotAShelf 2023-03-01 16:56:51 +03:00
parent fcf1318c8b
commit aa8198cb39
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1

View file

@ -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'
},
},
}
'';
@ -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'},
},
}
'';