aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-02-20 13:44:14 -0800
committerGitHub <noreply@github.com>2022-02-20 13:44:14 -0800
commitd80c9b925973be87d1d5a2e948d65907234b2134 (patch)
treed685958c1541ee19dc009d9e62e6a66797e5e9bd /runtime/lua/vim/diagnostic.lua
parent6a3acccd8be1c3796c0d1630383046b54b9f994c (diff)
downloadrneovim-d80c9b925973be87d1d5a2e948d65907234b2134.tar.gz
rneovim-d80c9b925973be87d1d5a2e948d65907234b2134.tar.bz2
rneovim-d80c9b925973be87d1d5a2e948d65907234b2134.zip
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.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
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