From 33a2e8aaa1185e223a58c67185e411bf4a942c76 Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Sun, 7 Jan 2024 01:00:52 +0100 Subject: [PATCH] Make sure diagnostic signs have the correct color Hope this is the last time I have to mess with those damn icons... --- lua/valeth/plugins/statuscol.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/valeth/plugins/statuscol.lua b/lua/valeth/plugins/statuscol.lua index 4dfbe75..e68f8d3 100644 --- a/lua/valeth/plugins/statuscol.lua +++ b/lua/valeth/plugins/statuscol.lua @@ -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"