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
This commit is contained in:
kylo252 2023-04-23 13:02:32 +02:00 committed by GitHub
parent 15c1f79ba2
commit 7a4265fa46
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,