Highlight linenumber for diagnostics instead of using signs, switched to non-mono font to allow for larger icons
This commit is contained in:
parent
0c074e2aec
commit
703c0bb087
|
@ -6,7 +6,7 @@ TERM = "xterm-256color"
|
|||
size = 9.8
|
||||
|
||||
[font.normal]
|
||||
family = "Hack Nerd Font Mono"
|
||||
family = "Hack Nerd Font"
|
||||
|
||||
[window]
|
||||
decorations = "none"
|
||||
|
|
|
@ -77,11 +77,17 @@ vim.o.winborder = window.border
|
|||
vim.diagnostic.config({
|
||||
severity_sort = true,
|
||||
signs = {
|
||||
numhl = {
|
||||
[vim.diagnostic.severity.ERROR] = "DiagnosticNumError",
|
||||
[vim.diagnostic.severity.WARN] = "DiagnosticNumWarn",
|
||||
[vim.diagnostic.severity.HINT] = "DiagnosticNumHint",
|
||||
[vim.diagnostic.severity.INFO] = "DiagnosticNumInfo",
|
||||
},
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = diagnostic.error,
|
||||
[vim.diagnostic.severity.WARN] = diagnostic.warn,
|
||||
[vim.diagnostic.severity.HINT] = diagnostic.hint,
|
||||
[vim.diagnostic.severity.INFO] = diagnostic.info,
|
||||
[vim.diagnostic.severity.ERROR] = "",
|
||||
[vim.diagnostic.severity.WARN] = "",
|
||||
[vim.diagnostic.severity.HINT] = "",
|
||||
[vim.diagnostic.severity.INFO] = "",
|
||||
},
|
||||
},
|
||||
float = {
|
||||
|
@ -95,7 +101,7 @@ vim.diagnostic.config({
|
|||
},
|
||||
virtual_text = {
|
||||
prefix = function(d)
|
||||
return vim.diagnostic.config().signs.text[d.severity]
|
||||
return diagnostic[d.severity]
|
||||
end,
|
||||
virt_text_pos = "eol_right_align",
|
||||
},
|
||||
|
|
|
@ -35,7 +35,7 @@ return {
|
|||
-- HACK: Hack
|
||||
HACK = { icon = diagnostic.hack },
|
||||
-- WARN: Warn
|
||||
WARN = { icon = diagnostic.warning },
|
||||
WARN = { icon = diagnostic.warn },
|
||||
-- PERF: Perf
|
||||
PERF = { icon = diagnostic.performance },
|
||||
-- NOTE: Note
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
-- Symbols to use for diagnostics
|
||||
return {
|
||||
-- LSP Status symbols
|
||||
[vim.diagnostic.severity.ERROR] = " ",
|
||||
[vim.diagnostic.severity.WARN] = " ",
|
||||
[vim.diagnostic.severity.INFO] = " ",
|
||||
[vim.diagnostic.severity.HINT] = "",
|
||||
error = " ",
|
||||
warn = " ",
|
||||
info = " ",
|
||||
|
|
|
@ -11,6 +11,7 @@ return {
|
|||
strings = false,
|
||||
},
|
||||
overrides = {
|
||||
CursorLineNr = { fg = palette.light4, bg = palette.dark1, bold = true },
|
||||
YankHighlight = { fg = palette.bright_blue, bg = palette.dark0, reverse = true },
|
||||
Search = { fg = palette.bright_aqua },
|
||||
IncSearch = { link = "Search" },
|
||||
|
@ -68,6 +69,10 @@ return {
|
|||
NeoTreeFileIcon = { fg = palette.light1 },
|
||||
NeoTreeFilterTerm = { 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 },
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user