mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(lualine): use gitsigns for diff source
This commit is contained in:
parent
e26a127185
commit
96d14dbeaa
1 changed files with 10 additions and 0 deletions
|
|
@ -177,6 +177,16 @@ return {
|
|||
modified = icons.git.modified,
|
||||
removed = icons.git.removed,
|
||||
},
|
||||
source = function()
|
||||
local gitsigns = vim.b.gitsigns_status_dict
|
||||
if gitsigns then
|
||||
return {
|
||||
added = gitsigns.added,
|
||||
modified = gitsigns.changed,
|
||||
removed = gitsigns.removed,
|
||||
}
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
lualine_y = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue