summaryrefslogtreecommitdiff
path: root/lua/lvim/lsp/config.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-09-04 16:20:14 +0200
committerkylo252 <[email protected]>2022-09-04 16:20:14 +0200
commit50494d62a99b1d0767f330f66f2df0458d2c5da0 (patch)
treef76758ef247fcab5f9c8b7c565560792acaf445d /lua/lvim/lsp/config.lua
parentb3bceadfddce9843850cb375edb9d470ca75b61b (diff)
parent256e4b8e70994761957b84cb24151fcdfcaa74e6 (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/lsp/config.lua')
-rw-r--r--lua/lvim/lsp/config.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua
index 2cd1bc6e..96a1b823 100644
--- a/lua/lvim/lsp/config.lua
+++ b/lua/lvim/lsp/config.lua
@@ -64,12 +64,11 @@ return {
header = "",
prefix = "",
format = function(d)
- local t = vim.deepcopy(d)
local code = d.code or (d.user_data and d.user_data.lsp.code)
if code then
- t.message = string.format("%s [%s]", t.message, code):gsub("1. ", "")
+ return string.format("%s [%s]", d.message, code):gsub("1. ", "")
end
- return t.message
+ return d.message
end,
},
},