diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 0ece084..539f605 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -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" },