aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-03 11:31:09 -0800
committerGitHub <noreply@github.com>2021-01-03 20:31:09 +0100
commitfff4facdc47a0c8d088256af4d07c792b38b4a03 (patch)
treec6529a7f7699b88a263920fb11f8c58d20515b2a /runtime/lua/vim/lsp/handlers.lua
parentfd960a33e4d370917ede6b460efb069e663dbbc9 (diff)
downloadrneovim-fff4facdc47a0c8d088256af4d07c792b38b4a03.tar.gz
rneovim-fff4facdc47a0c8d088256af4d07c792b38b4a03.tar.bz2
rneovim-fff4facdc47a0c8d088256af4d07c792b38b4a03.zip
LSP: fix messageRequest to not return nested title (#13674)
* LSP: fix window/showMessageRequest to not return nested title * Add window/showMessageRequest handler to docs
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua5
1 files changed, 1 insertions, 4 deletions
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