From d80c9b925973be87d1d5a2e948d65907234b2134 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sun, 20 Feb 2022 13:44:14 -0800 Subject: fix(diagnostic): use botright copen for qflist (#17475) This matches the LSP handlers, and forces the qflist for diagnostics to span across the horizontal space, below all open windows. --- runtime/lua/vim/diagnostic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua') diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index fda70b4e95..8879e2debd 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -447,7 +447,7 @@ local function set_list(loclist, opts) vim.fn.setqflist({}, ' ', { title = title, items = items }) end if open then - vim.api.nvim_command(loclist and "lopen" or "copen") + vim.api.nvim_command(loclist and "lopen" or "botright copen") end end -- cgit