Highlight linenumber for diagnostics instead of using signs, switched to non-mono font to allow for larger icons

This commit is contained in:
Dreaded_X 2025-05-28 21:14:01 +02:00
parent 0c074e2aec
commit 703c0bb087
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA
5 changed files with 25 additions and 10 deletions

View File

@ -6,7 +6,7 @@ TERM = "xterm-256color"
size = 9.8 size = 9.8
[font.normal] [font.normal]
family = "Hack Nerd Font Mono" family = "Hack Nerd Font"
[window] [window]
decorations = "none" decorations = "none"

View File

@ -77,11 +77,17 @@ vim.o.winborder = window.border
vim.diagnostic.config({ vim.diagnostic.config({
severity_sort = true, severity_sort = true,
signs = { signs = {
numhl = {
[vim.diagnostic.severity.ERROR] = "DiagnosticNumError",
[vim.diagnostic.severity.WARN] = "DiagnosticNumWarn",
[vim.diagnostic.severity.HINT] = "DiagnosticNumHint",
[vim.diagnostic.severity.INFO] = "DiagnosticNumInfo",
},
text = { text = {
[vim.diagnostic.severity.ERROR] = diagnostic.error, [vim.diagnostic.severity.ERROR] = "",
[vim.diagnostic.severity.WARN] = diagnostic.warn, [vim.diagnostic.severity.WARN] = "",
[vim.diagnostic.severity.HINT] = diagnostic.hint, [vim.diagnostic.severity.HINT] = "",
[vim.diagnostic.severity.INFO] = diagnostic.info, [vim.diagnostic.severity.INFO] = "",
}, },
}, },
float = { float = {
@ -95,7 +101,7 @@ vim.diagnostic.config({
}, },
virtual_text = { virtual_text = {
prefix = function(d) prefix = function(d)
return vim.diagnostic.config().signs.text[d.severity] return diagnostic[d.severity]
end, end,
virt_text_pos = "eol_right_align", virt_text_pos = "eol_right_align",
}, },

View File

@ -35,7 +35,7 @@ return {
-- HACK: Hack -- HACK: Hack
HACK = { icon = diagnostic.hack }, HACK = { icon = diagnostic.hack },
-- WARN: Warn -- WARN: Warn
WARN = { icon = diagnostic.warning }, WARN = { icon = diagnostic.warn },
-- PERF: Perf -- PERF: Perf
PERF = { icon = diagnostic.performance }, PERF = { icon = diagnostic.performance },
-- NOTE: Note -- NOTE: Note

View File

@ -1,6 +1,10 @@
-- Symbols to use for diagnostics -- Symbols to use for diagnostics
return { return {
-- LSP Status symbols -- LSP Status symbols
[vim.diagnostic.severity.ERROR] = "",
[vim.diagnostic.severity.WARN] = "",
[vim.diagnostic.severity.INFO] = "",
[vim.diagnostic.severity.HINT] = "󰌵",
error = "", error = "",
warn = "", warn = "",
info = "", info = "",

View File

@ -11,6 +11,7 @@ return {
strings = false, strings = false,
}, },
overrides = { overrides = {
CursorLineNr = { fg = palette.light4, bg = palette.dark1, bold = true },
YankHighlight = { fg = palette.bright_blue, bg = palette.dark0, reverse = true }, YankHighlight = { fg = palette.bright_blue, bg = palette.dark0, reverse = true },
Search = { fg = palette.bright_aqua }, Search = { fg = palette.bright_aqua },
IncSearch = { link = "Search" }, IncSearch = { link = "Search" },
@ -68,6 +69,10 @@ return {
NeoTreeFileIcon = { fg = palette.light1 }, NeoTreeFileIcon = { fg = palette.light1 },
NeoTreeFilterTerm = { fg = palette.bright_aqua, bold = true }, NeoTreeFilterTerm = { fg = palette.bright_aqua, bold = true },
NeoTreeSymbolicLinkTarget = { fg = palette.bright_aqua, bold = true }, NeoTreeSymbolicLinkTarget = { fg = palette.bright_aqua, bold = true },
DiagnosticNumError = { fg = palette.dark0, bg = palette.bright_red, bold = true },
DiagnosticNumWarn = { fg = palette.dark0, bg = palette.bright_yellow, bold = true },
DiagnosticNumHint = { fg = palette.dark0, bg = palette.bright_aqua, bold = true },
DiagnosticNumInfo = { fg = palette.dark0, bg = palette.bright_blue, bold = true },
}, },
}) })