diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2022-12-04 16:29:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 16:29:05 +0100 |
commit | ec6ba87229704463007fd9db665dcc303e0e4e74 (patch) | |
tree | 2594c7667f3aae0a13735d7ab41f4809244b525e /runtime | |
parent | 01a8cd0432a272c41e882af96ee8488a4105bd32 (diff) | |
parent | 67e1390dc8eb584d26ae9c9634c05acb3b7e37ca (diff) | |
download | rneovim-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.lua | 5 |
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 |