diff options
-rw-r--r-- | runtime/doc/lsp.txt | 1 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 02d41e7f53..6ca7b52fff 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -176,6 +176,7 @@ specification. These LSP requests/notifications are defined by default: textDocument/typeDefinition* window/logMessage window/showMessage + window/showMessageRequest workspace/applyEdit workspace/symbol diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index de00d36188..87f35363b1 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -93,10 +93,7 @@ M['window/showMessageRequest'] = function(_, _, params) if choice < 1 or choice > #actions then return vim.NIL else - local action_chosen = actions[choice] - return { - title = action_chosen; - } + return actions[choice] end end |