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;