aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-02-20 11:09:01 -0800
committerGitHub <noreply@github.com>2022-02-20 11:09:01 -0800
commit6a3acccd8be1c3796c0d1630383046b54b9f994c (patch)
tree62fba02e1b62b9c17fa2dee74aeb7ac51ca4b071 /runtime/lua/vim/lsp/handlers.lua
parent4b3fb4b17796ee6d9c8d7e8135a93b60cf09b016 (diff)
downloadrneovim-6a3acccd8be1c3796c0d1630383046b54b9f994c.tar.gz
rneovim-6a3acccd8be1c3796c0d1630383046b54b9f994c.tar.bz2
rneovim-6a3acccd8be1c3796c0d1630383046b54b9f994c.zip
fix(lsp): use botright copen for all handlers (#17471)
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index a997b887d9..f5aefd4402 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -336,7 +336,7 @@ local function location_handler(_, result, ctx, _)
title = 'LSP locations',
items = util.locations_to_items(result, client.offset_encoding)
})
- api.nvim_command("copen")
+ api.nvim_command("botright copen")
end
else
util.jump_to_location(result, client.offset_encoding)
@@ -430,7 +430,7 @@ local make_call_hierarchy_handler = function(direction)
end
end
vim.fn.setqflist({}, ' ', {title = 'LSP call hierarchy', items = items})
- api.nvim_command("copen")
+ api.nvim_command("botright copen")
end
end