i donk get incline
This commit is contained in:
parent
ee553be606
commit
f97e617143
|
@ -655,12 +655,12 @@ local plugins = {
|
|||
local icons = { removed = "", changed = "", added = "" }
|
||||
local labels = {}
|
||||
-- local signs = vim.api.nvim_buf_get_var(props.buf, "gitsigns_status_dict")
|
||||
local signs = vim.b.gitsigns_status_dict
|
||||
for name, icon in pairs(icons) do
|
||||
if tonumber(signs[name]) and signs[name] > 0 then
|
||||
table.insert(labels, { icon .. " " .. signs[name] .. " ", group = "Diff" .. name })
|
||||
end
|
||||
end
|
||||
-- local signs = vim.b.gitsigns_status_dict
|
||||
-- for name, icon in pairs(icons) do
|
||||
-- if tonumber(signs[name]) and signs[name] > 0 then
|
||||
-- table.insert(labels, { icon .. " " .. signs[name] .. " ", group = "Diff" .. name })
|
||||
-- end
|
||||
-- end
|
||||
if #labels > 0 then
|
||||
table.insert(labels, { "| " })
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue