1
0
Fork 0

Change how diagnostic signs are defined in Neovim

This commit is contained in:
Avery 2025-07-02 06:28:53 +00:00
parent de6026cb84
commit 242dccba12
Signed by: Avery
GPG key ID: B684FD451B692E04

View file

@ -4,17 +4,14 @@
enable = true; enable = true;
keymaps.lspBuf."<leader>ca" = "code_action"; keymaps.lspBuf."<leader>ca" = "code_action";
luaConfig.post = '' luaConfig.post = ''
local signs = { vim.diagnostic.config({
Error = "", signs = {
Warn = "", Error = "",
Hint = "", Warn = "",
Info = "" Hint = "",
} Info = ""
}
for type, icon in pairs(signs) do });
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, {text = icon, texthl = hl, numhl = hl})
end
''; '';
servers = { servers = {
cssls.enable = true; cssls.enable = true;