mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): use botright copen for all handlers (#17471)
This commit is contained in:
parent
4b3fb4b177
commit
6a3acccd8b
@ -336,7 +336,7 @@ local function location_handler(_, result, ctx, _)
|
|||||||
title = 'LSP locations',
|
title = 'LSP locations',
|
||||||
items = util.locations_to_items(result, client.offset_encoding)
|
items = util.locations_to_items(result, client.offset_encoding)
|
||||||
})
|
})
|
||||||
api.nvim_command("copen")
|
api.nvim_command("botright copen")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
util.jump_to_location(result, client.offset_encoding)
|
util.jump_to_location(result, client.offset_encoding)
|
||||||
@ -430,7 +430,7 @@ local make_call_hierarchy_handler = function(direction)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.fn.setqflist({}, ' ', {title = 'LSP call hierarchy', items = items})
|
vim.fn.setqflist({}, ' ', {title = 'LSP call hierarchy', items = items})
|
||||||
api.nvim_command("copen")
|
api.nvim_command("botright copen")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user