From 80ceacbb020edbf17540e5f2d5e5d77781a951c2 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 1 Dec 2021 23:25:45 +0800 Subject: [PATCH] fix vim.diagnostic.config() option name typo --- lua/config/lsp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 1bc64d3..585ec9a 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -158,11 +158,12 @@ vim.fn.sign_define("DiagnosticSignWarn", { text = "!", texthl = "DiagnosticSignW vim.fn.sign_define("DiagnosticSignInformation", { text = "", texthl = "DiagnosticSignInfo" }) vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" }) +-- global config for diagnostic vim.diagnostic.config({ underline = false, virtual_text = false, signs = true, - severity = true, + severity_sort = true, }) -- lsp.handlers["textDocument/publishDiagnostics"] = lsp.with(lsp.diagnostic.on_publish_diagnostics, {