comments and git signs fix

This commit is contained in:
Christoph J. Scherr 2024-01-23 11:59:22 +01:00
parent a5ef5f3623
commit 8788f5a833
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ local M = {}
---@type Base46HLGroupsList
M.override = {
Comment = {
italic = true,
italic = false,
},
NvDashAscii = {
fg = "#b33366",

View File

@ -654,8 +654,8 @@ local plugins = {
local function get_git_diff(props)
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
-- 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 })