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