comments and git signs fix
This commit is contained in:
parent
a5ef5f3623
commit
8788f5a833
|
@ -7,7 +7,7 @@ local M = {}
|
||||||
---@type Base46HLGroupsList
|
---@type Base46HLGroupsList
|
||||||
M.override = {
|
M.override = {
|
||||||
Comment = {
|
Comment = {
|
||||||
italic = true,
|
italic = false,
|
||||||
},
|
},
|
||||||
NvDashAscii = {
|
NvDashAscii = {
|
||||||
fg = "#b33366",
|
fg = "#b33366",
|
||||||
|
|
|
@ -654,8 +654,8 @@ local plugins = {
|
||||||
local function get_git_diff(props)
|
local function get_git_diff(props)
|
||||||
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 })
|
||||||
|
|
Loading…
Reference in New Issue