feat(nvim): update lsp icons

This commit is contained in:
Bruno Carlin 2024-04-20 17:17:07 +02:00
parent 7e1edd9412
commit 6b966221c6
Signed by: bcarlin
GPG key ID: 8E254EA0FFEB9B6D

View file

@ -7,13 +7,27 @@ vim.diagnostic.config({
source = "always", -- Or "if_many" source = "always", -- Or "if_many"
border = "rounded", 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, signs = true,
underline = true, underline = true,
update_in_insert = true, update_in_insert = true,
severity_sort = true, severity_sort = true,
}) })
local signs = { Error = "", Warn = "", Hint = "", Info = "" } local signs = { Error = "", Warn = "", Hint = "💡", Info = "" }
for type, icon in pairs(signs) do for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })