i donk get incline

This commit is contained in:
Christoph J. Scherr 2024-01-23 13:32:24 +01:00
parent ee553be606
commit f97e617143
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 6 additions and 6 deletions

View File

@ -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