aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorMathias Fussenegger <f.mathias@zignar.net>2022-12-04 15:57:46 +0100
committerMathias Fussenegger <f.mathias@zignar.net>2022-12-04 15:57:46 +0100
commit67e1390dc8eb584d26ae9c9634c05acb3b7e37ca (patch)
tree2594c7667f3aae0a13735d7ab41f4809244b525e /runtime/lua/vim/lsp/handlers.lua
parent48b84d6d6e795d4c4b73ed1ed11967435f11267b (diff)
downloadrneovim-67e1390dc8eb584d26ae9c9634c05acb3b7e37ca.tar.gz
rneovim-67e1390dc8eb584d26ae9c9634c05acb3b7e37ca.tar.bz2
rneovim-67e1390dc8eb584d26ae9c9634c05acb3b7e37ca.zip
fix(lsp): call show_document with correct args
Closes https://github.com/neovim/neovim/issues/21177
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index e0162218f1..80df83732e 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -579,7 +579,10 @@ M['window/showDocument'] = function(_, result, ctx, _)
range = result.selection,
}
- local success = util.show_document(location, client.offset_encoding, true, result.takeFocus)
+ local success = util.show_document(location, client.offset_encoding, {
+ reuse_win = true,
+ focus = result.takeFocus,
+ })
return { success = success or false }
end