feat(nvim): use icons signs for lsp diagnostics
parent
7c628f076c
commit
d9af4ca236
|
@ -139,7 +139,7 @@ vim.diagnostic.config({
|
|||
signs = true,
|
||||
update_in_insert = true,
|
||||
underline = true,
|
||||
severity_sort = false,
|
||||
severity_sort = true,
|
||||
float = {
|
||||
border = "rounded",
|
||||
source = "always",
|
||||
|
@ -148,6 +148,13 @@ vim.diagnostic.config({
|
|||
},
|
||||
})
|
||||
|
||||
-- setup diagnostics signs
|
||||
local diagnostics_signs = { Error = "", Want = "", Hint = "", Info = "" }
|
||||
for type, icon in pairs(diagnostics_signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
|
||||
-- setup html languageserver
|
||||
lspconfig["html"].setup({
|
||||
cmd = { "html-languageserver", "--stdio" },
|
||||
|
|
Loading…
Reference in New Issue