1
0

Make sure diagnostic signs have the correct color

Hope this is the last time I have to mess with those damn icons...
This commit is contained in:
Patrick Auernig 2024-01-07 01:00:52 +01:00
parent 2eb9979462
commit 33a2e8aaa1

View File

@ -12,10 +12,10 @@ spec.config = function()
local builtin = require("statuscol.builtin")
-- Give me fancy diagnostic signs
vim.fn.sign_define("DiagnosticSignError", { text = "" })
vim.fn.sign_define("DiagnosticSignWarn", { text = "" })
vim.fn.sign_define("DiagnosticSignInfo ", { text = "»" })
vim.fn.sign_define("DiagnosticSignHint", { text = "" })
for level, text in pairs({ Error = "", Warn = "", Info = "»", Hint = "" }) do
local name = "DiagnosticSign" .. level
vim.fn.sign_define(name, { text = text, texthl = name })
end
vim.opt.signcolumn = "yes"
vim.opt.foldcolumn = "1"