diff options
| author | jdhao <jdhao@hotmail.com> | 2021-12-01 23:25:45 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-12-01 23:25:45 +0800 |
| commit | 80ceacbb020edbf17540e5f2d5e5d77781a951c2 (patch) | |
| tree | fd8bda532d278d1f605cfd80d3b323fe2f4be3fb /lua/config | |
| parent | 23e98aab6fe98723095a4f432d29e9f60051c300 (diff) | |
fix vim.diagnostic.config() option name typo
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/lsp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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, { |
