diff options
| author | kylo252 <[email protected]> | 2022-01-15 12:32:06 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-15 12:32:06 +0100 | 
| commit | 19f0c8ccfafa0f2e634610c0aeb174b0983a52c1 (patch) | |
| tree | 6148a76caea4f611b3277b82b092fd191408f0eb /lua/lvim/lsp | |
| parent | 41838ff4f6181c5ad3bab783fcd066ec3ecfd381 (diff) | |
fix(diag): show lsp-diag code in open_float (#2180)
Diffstat (limited to 'lua/lvim/lsp')
| -rw-r--r-- | lua/lvim/lsp/config.lua | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua index 64cf52f0..817ccd9f 100644 --- a/lua/lvim/lsp/config.lua +++ b/lua/lvim/lsp/config.lua @@ -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,  | 
