mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix(diag): show lsp-diag code in open_float (#2180)
This commit is contained in:
parent
41838ff4f6
commit
19f0c8ccfa
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ return {
|
|||
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. ", "")
|
||||
local code = d.code or d.user_data.lsp.code
|
||||
if code then
|
||||
t.message = string.format("%s [%s]", t.message, code):gsub("1. ", "")
|
||||
end
|
||||
return t.message
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue