diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-06-22 11:45:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 11:45:04 -0700 |
commit | 5a24284b8d88098018596fe20ed537c7a98dc9b2 (patch) | |
tree | dbfcb3af33ecfc78136634ac0645c5f818390e7f /runtime/lua/vim/lsp/handlers.lua | |
parent | b601f2548c124e3a2b110abdfd62b80b12352e72 (diff) | |
parent | 060255253fcfcfd704f321f58221e23ea6a6490f (diff) | |
download | rneovim-5a24284b8d88098018596fe20ed537c7a98dc9b2.tar.gz rneovim-5a24284b8d88098018596fe20ed537c7a98dc9b2.tar.bz2 rneovim-5a24284b8d88098018596fe20ed537c7a98dc9b2.zip |
Merge pull request #14878 from mjlbach/fix/lsp-quickfix-focus
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-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 |