feat(nvim): use icons signs for lsp diagnostics
This commit is contained in:
parent
7c628f076c
commit
d9af4ca236
@ -139,7 +139,7 @@ vim.diagnostic.config({
|
|||||||
signs = true,
|
signs = true,
|
||||||
update_in_insert = true,
|
update_in_insert = true,
|
||||||
underline = true,
|
underline = true,
|
||||||
severity_sort = false,
|
severity_sort = true,
|
||||||
float = {
|
float = {
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
source = "always",
|
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
|
-- setup html languageserver
|
||||||
lspconfig["html"].setup({
|
lspconfig["html"].setup({
|
||||||
cmd = { "html-languageserver", "--stdio" },
|
cmd = { "html-languageserver", "--stdio" },
|
||||||
|
Reference in New Issue
Block a user