Fix: Diagnostic sign highlight also changed the background of the line number

This commit is contained in:
Dreaded_X 2024-04-19 03:41:13 +02:00
parent e4f6d92e34
commit 9d2dc5a389
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -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", {