mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-30 04:24:35 +02:00
feat(lualine): use gitsigns for diff source (#1744)
Co-authored-by: edshamis <pc>
This commit is contained in:
parent
c3daced11c
commit
8c726cd166
1 changed files with 10 additions and 0 deletions
|
@ -184,6 +184,16 @@ return {
|
||||||
modified = icons.git.modified,
|
modified = icons.git.modified,
|
||||||
removed = icons.git.removed,
|
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 = {
|
lualine_y = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue