aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2022-12-04 16:29:05 +0100
committerGitHub <noreply@github.com>2022-12-04 16:29:05 +0100
commitec6ba87229704463007fd9db665dcc303e0e4e74 (patch)
tree2594c7667f3aae0a13735d7ab41f4809244b525e /runtime
parent01a8cd0432a272c41e882af96ee8488a4105bd32 (diff)
parent67e1390dc8eb584d26ae9c9634c05acb3b7e37ca (diff)
downloadrneovim-ec6ba87229704463007fd9db665dcc303e0e4e74.tar.gz
rneovim-ec6ba87229704463007fd9db665dcc303e0e4e74.tar.bz2
rneovim-ec6ba87229704463007fd9db665dcc303e0e4e74.zip
Merge pull request #21287 from mfussenegger/lsp-show-document
fix(lsp): call show_document with correct args
Diffstat (limited to 'runtime')
-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