From fad676b86714103adccaf3cef4478c030fc63671 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 20 Feb 2024 22:02:14 -0600 Subject: [PATCH] fix(nvim): ensure diag signs/hls set --- dots/.config/nvim/lua/core/lsp.lua | 14 ++++++++++++++ dots/.config/nvim/lua/plugins/configs/kanagawa.lua | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/dots/.config/nvim/lua/core/lsp.lua b/dots/.config/nvim/lua/core/lsp.lua index be1b7ec9..f2b156b9 100644 --- a/dots/.config/nvim/lua/core/lsp.lua +++ b/dots/.config/nvim/lua/core/lsp.lua @@ -16,6 +16,20 @@ M.setup = function() severity_sort = true, underline = true, update_in_insert = false, + signs = { + text = { + [vim.diagnostic.severity.ERROR] = "󰅙", + [vim.diagnostic.severity.WARN] = "", + [vim.diagnostic.severity.INFO] = "󰋼", + [vim.diagnostic.severity.HINT] = "", + }, + numhl = { + [vim.diagnostic.severity.ERROR] = "", + [vim.diagnostic.severity.WARN] = "", + [vim.diagnostic.severity.INFO] = "", + [vim.diagnostic.severity.HINT] = "", + } + }, float = { focusable = true, style = "minimal", diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index 4af776b2..e06bd16d 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -53,13 +53,13 @@ return { { "Winbar", { bg = nil } }, { "StatusLineNC", { bg = nil } }, { "WinBarNC", { bg = nil } }, - { "DiagnosticSignErrorCul", { link = "DiagnosticSignError" } }, - { "DiagnosticSignWarnCul", { link = "DiagnosticSignWarn" } }, - { "DiagnosticSignInfoCul", { link = "DiagnosticSignInfo" } }, - { "DiagnosticSignHintCul", { link = "DiagnosticSignHint" } }, { "CursorLineNr", { fg = colors.roninYellow, bg = palette.theme.ui.bg_m1 } }, { "CursorLineFold", { fg = colors.crystalBlue, bg = palette.theme.ui.bg_m1 } }, { "CursorLineSign", { bg = palette.theme.ui.bg_m1 } }, + { "DiagnosticSignErrorCul", { fg = palette.theme.diag.error, bg = palette.theme.ui.bg_m1 } }, + { "DiagnosticSignWarnCul", { fg = palette.theme.diag.warning, bg = palette.theme.ui.bg_m1 } }, + { "DiagnosticSignInfoCul", { fg = palette.theme.diag.info, bg = palette.theme.ui.bg_m1 } }, + { "DiagnosticSignHintCul", { fg = palette.theme.diag.hint, bg = palette.theme.ui.bg_m1 } }, { "LightBulbSign", { fg = colors.crystalBlue, bg = palette.theme.ui.bg_m1 } }, { "WinSeparator", { fg = colors.fujiGray } }, { "StatusLine", { fg = colors.fujiWhite, bg = colors.sumiInk0 } },