feat(nvim): update lsp icons
This commit is contained in:
parent
7e1edd9412
commit
6b966221c6
1 changed files with 15 additions and 1 deletions
|
@ -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 })
|
||||||
|
|
Loading…
Add table
Reference in a new issue