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 icons = { removed = "", changed = "", added = "" }
|
||||||
local labels = {}
|
local labels = {}
|
||||||
-- local signs = vim.api.nvim_buf_get_var(props.buf, "gitsigns_status_dict")
|
-- local signs = vim.api.nvim_buf_get_var(props.buf, "gitsigns_status_dict")
|
||||||
local signs = vim.b.gitsigns_status_dict
|
-- local signs = vim.b.gitsigns_status_dict
|
||||||
for name, icon in pairs(icons) do
|
-- for name, icon in pairs(icons) do
|
||||||
if tonumber(signs[name]) and signs[name] > 0 then
|
-- if tonumber(signs[name]) and signs[name] > 0 then
|
||||||
table.insert(labels, { icon .. " " .. signs[name] .. " ", group = "Diff" .. name })
|
-- table.insert(labels, { icon .. " " .. signs[name] .. " ", group = "Diff" .. name })
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
if #labels > 0 then
|
if #labels > 0 then
|
||||||
table.insert(labels, { "| " })
|
table.insert(labels, { "| " })
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue