diff options
author | kylo252 <[email protected]> | 2022-01-24 12:51:16 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-01-24 12:51:16 +0100 |
commit | 440324996c37591be74344b17f8450662dac4759 (patch) | |
tree | 67afdc4268d056aadb79278a72ca0b57910950d7 /lua/lvim/lsp/config.lua | |
parent | 7125e2b2d83db53e441de406445639bf1a49252d (diff) | |
parent | 269a35d1849a23a27a215e5b3c7b12e49066852f (diff) |
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/lsp/config.lua')
-rw-r--r-- | lua/lvim/lsp/config.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua index 64cf52f0..b45142f5 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, @@ -77,6 +78,7 @@ return { "jedi_language_server", "ltex", "phpactor", + "psalm", "pylsp", "quick_lint_js", "remark_ls", |