summaryrefslogtreecommitdiff
path: root/lua/lvim/lsp/config.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-12-06 17:04:46 +0100
committerGitHub <[email protected]>2021-12-06 17:04:46 +0100
commit6770808bec1ffcada425ae514747f9380e3d3b8d (patch)
tree657712b9a93588b16db9646446089f6f084c9b65 /lua/lvim/lsp/config.lua
parent38a172434027c9ac2a71cd658803ec3f7a39ab09 (diff)
feat: full compatibility with neovim v0.6 (#2037)
Diffstat (limited to 'lua/lvim/lsp/config.lua')
-rw-r--r--lua/lvim/lsp/config.lua23
1 files changed, 19 insertions, 4 deletions
diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua
index 18f1218d..a990f8c7 100644
--- a/lua/lvim/lsp/config.lua
+++ b/lua/lvim/lsp/config.lua
@@ -4,16 +4,31 @@ return {
signs = {
active = true,
values = {
- { name = "LspDiagnosticsSignError", text = "ï™™" },
- { name = "LspDiagnosticsSignWarning", text = "" },
- { name = "LspDiagnosticsSignHint", text = "ï µ" },
- { name = "LspDiagnosticsSignInformation", text = "" },
+ { name = "DiagnosticSignError", text = "ï™™" },
+ { name = "DiagnosticSignWarn", text = "" },
+ { name = "DiagnosticSignHint", text = "ï µ" },
+ { name = "DiagnosticSignInfo", text = "" },
},
},
virtual_text = true,
update_in_insert = false,
underline = true,
severity_sort = true,
+ float = {
+ focusable = false,
+ style = "minimal",
+ border = "rounded",
+ source = "always",
+ header = "",
+ prefix = "",
+ format = function(d)
+ local t = vim.deepcopy(d)
+ if d.code then
+ t.message = string.format("%s [%s]", t.message, t.code):gsub("1. ", "")
+ end
+ return t.message
+ end,
+ },
},
document_highlight = true,
code_lens_refresh = true,