summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2023-04-23 13:02:32 +0200
committerGitHub <[email protected]>2023-04-23 13:02:32 +0200
commit7a4265fa464cc6b2d1e604cb2fded451a2a9adfb (patch)
treecaa38339c9e10d67c121e7bccd6939baf13e2bb7
parent15c1f79ba215f724a5d157ee00381f1019dada0b (diff)
fix(lsp): diagnostic codes already show by default (#4070)
avoid viewing duplicate diagnostic codes since they are now already shown by default since neovim#21130
-rw-r--r--lua/lvim/lsp/config.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua
index 9e100fa7..aea142b8 100644
--- a/lua/lvim/lsp/config.lua
+++ b/lua/lvim/lsp/config.lua
@@ -75,13 +75,6 @@ return {
source = "always",
header = "",
prefix = "",
- format = function(d)
- local code = d.code or (d.user_data and d.user_data.lsp.code)
- if code then
- return string.format("%s [%s]", d.message, code):gsub("1. ", "")
- end
- return d.message
- end,
},
},
document_highlight = false,