diff options
author | Mathias Fussenegger <f.mathias@zignar.net> | 2022-12-04 15:57:46 +0100 |
---|---|---|
committer | Mathias Fussenegger <f.mathias@zignar.net> | 2022-12-04 15:57:46 +0100 |
commit | 67e1390dc8eb584d26ae9c9634c05acb3b7e37ca (patch) | |
tree | 2594c7667f3aae0a13735d7ab41f4809244b525e /runtime/lua/vim/lsp/handlers.lua | |
parent | 48b84d6d6e795d4c4b73ed1ed11967435f11267b (diff) | |
download | rneovim-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.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 |