From 6b966221c66134e017669909c7829f09b14e251b Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Sat, 20 Apr 2024 17:17:07 +0200 Subject: [PATCH] feat(nvim): update lsp icons --- nvim/.config/nvim/lua/settings/lsp.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/settings/lsp.lua b/nvim/.config/nvim/lua/settings/lsp.lua index 3ae2636..95fd08e 100644 --- a/nvim/.config/nvim/lua/settings/lsp.lua +++ b/nvim/.config/nvim/lua/settings/lsp.lua @@ -7,13 +7,27 @@ vim.diagnostic.config({ source = "always", -- Or "if_many" border = "rounded", }, +-- signs = { +-- text = { +-- [vim.diagnostic.severity.HINT] = '💡', +-- [vim.diagnostic.severity.INFO] = '', +-- [vim.diagnostic.severity.WARN] = '', +-- [vim.diagnostic.severity.ERROR] = '', +-- }, +-- numhl = { +-- [vim.diagnostic.severity.HINT] = 'DiagnosticSignHint', +-- [vim.diagnostic.severity.INFO] = 'DiagnosticSignInfo', +-- [vim.diagnostic.severity.WARN] = 'DiagnosticSignWarn', +-- [vim.diagnostic.severity.ERROR] = 'DiagnosticSignError', +-- }, +-- }, signs = true, underline = true, update_in_insert = true, severity_sort = true, }) -local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " } +local signs = { Error = "", Warn = "", Hint = "💡", Info = "" } for type, icon in pairs(signs) do local hl = "DiagnosticSign" .. type vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })