diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-06-21 20:44:37 -0700 |
---|---|---|
committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-06-21 20:44:37 -0700 |
commit | 060255253fcfcfd704f321f58221e23ea6a6490f (patch) | |
tree | fabd714dbd3ea35809e56dd44d48033be58d5eab | |
parent | b585f723bcbaa10a091fce5a61659b331b1467b9 (diff) | |
download | rneovim-060255253fcfcfd704f321f58221e23ea6a6490f.tar.gz rneovim-060255253fcfcfd704f321f58221e23ea6a6490f.tar.bz2 rneovim-060255253fcfcfd704f321f58221e23ea6a6490f.zip |
fix(lsp): handlers should focus quickfix list
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index 5d38150fc0..41852b9d88 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -196,7 +196,6 @@ M['textDocument/references'] = function(_, _, result) if not result then return end util.set_qflist(util.locations_to_items(result)) api.nvim_command("copen") - api.nvim_command("wincmd p") end --@private @@ -211,7 +210,6 @@ local symbol_handler = function(_, _, result, _, bufnr) util.set_qflist(util.symbols_to_items(result, bufnr)) api.nvim_command("copen") - api.nvim_command("wincmd p") end --@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentSymbol M['textDocument/documentSymbol'] = symbol_handler @@ -302,7 +300,6 @@ local function location_handler(_, method, result) if #result > 1 then util.set_qflist(util.locations_to_items(result)) api.nvim_command("copen") - api.nvim_command("wincmd p") end else util.jump_to_location(result) @@ -383,7 +380,6 @@ local make_call_hierarchy_handler = function(direction) end util.set_qflist(items) api.nvim_command("copen") - api.nvim_command("wincmd p") end end |