aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-06-11 12:05:18 +0100
committerLewis Russell <me@lewisr.dev>2024-06-11 12:45:43 +0100
commit5e49ef0af3cb8dba658e5d0dc6a807f8edebf590 (patch)
tree4d819cee76851c0c3168cd6f12c7d5ea87a586be /runtime/lua/vim/lsp/handlers.lua
parentd8e384b7bfd5829e5ff5006202faa584b3211e84 (diff)
downloadrneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.tar.gz
rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.tar.bz2
rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.zip
refactor(lua): improve type annotations
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index 38c43893eb..44548fec92 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -646,6 +646,7 @@ M[ms.window_showMessage] = function(_, result, ctx, _)
if message_type == protocol.MessageType.Error then
err_message('LSP[', client_name, '] ', message)
else
+ --- @type string
local message_type_name = protocol.MessageType[message_type]
api.nvim_out_write(string.format('LSP[%s][%s] %s\n', client_name, message_type_name, message))
end