From 9d2dc5a38975d2c8cf7666b97d9a7876e5ff29ca Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 19 Apr 2024 03:41:13 +0200 Subject: [PATCH] Fix: Diagnostic sign highlight also changed the background of the line number --- nvim/dot-config/nvim/lua/plugins/lsp.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/dot-config/nvim/lua/plugins/lsp.lua b/nvim/dot-config/nvim/lua/plugins/lsp.lua index 6b83826..c458dcc 100644 --- a/nvim/dot-config/nvim/lua/plugins/lsp.lua +++ b/nvim/dot-config/nvim/lua/plugins/lsp.lua @@ -47,8 +47,9 @@ return { Info = diagnostic.info, } for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) + local hl_sign = "DiagnosticSign" .. type + local hl_text = "Diagnostic" .. type + vim.fn.sign_define(hl_sign, { text = icon, texthl = hl_sign, numhl = hl_text }) end vim.api.nvim_create_autocmd("LspAttach", {