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.
This commit is contained in:
Michael Lingelbach 2022-02-20 13:44:14 -08:00 committed by GitHub
parent 6a3acccd8b
commit d80c9b9259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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