From 242dccba12ed898aee5e307025b80dd30446334d Mon Sep 17 00:00:00 2001 From: Avery Date: Wed, 2 Jul 2025 06:28:53 +0000 Subject: [PATCH] Change how diagnostic signs are defined in Neovim --- common/home-manager/nixvim/lsp.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/common/home-manager/nixvim/lsp.nix b/common/home-manager/nixvim/lsp.nix index 37a8352..7c0766d 100644 --- a/common/home-manager/nixvim/lsp.nix +++ b/common/home-manager/nixvim/lsp.nix @@ -4,17 +4,14 @@ enable = true; keymaps.lspBuf."ca" = "code_action"; luaConfig.post = '' - local signs = { - Error = "", - Warn = "", - 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 + vim.diagnostic.config({ + signs = { + Error = "", + Warn = "", + Hint = "", + Info = "" + } + }); ''; servers = { cssls.enable = true;