Add LSP diagnostic backgrounds for better visibility

Introduce light tinted backgrounds for LSP diagnostics
to enhance code highlighting and improve user experience.
This commit is contained in:
Ray Elliott 2025-12-11 23:45:02 +00:00
commit f2a94d10ac
3 changed files with 16 additions and 17 deletions

View file

@ -56,15 +56,8 @@ vim.diagnostic.config({
return string.format("%s: %s", diagnostic.source or "", diagnostic.message)
end,
},
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "E",
[vim.diagnostic.severity.WARN] = "W",
[vim.diagnostic.severity.HINT] = "H",
[vim.diagnostic.severity.INFO] = "I",
},
},
underline = true, -- Underline problematic text
signs = false, -- Disable signs (redundant with background highlights and virtual text)
underline = true, -- Use background highlights on problematic text
update_in_insert = false, -- Don't update diagnostics while typing
severity_sort = true, -- Sort by severity (errors first)
float = {