diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-02-20 13:44:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-20 13:44:14 -0800 |
commit | d80c9b925973be87d1d5a2e948d65907234b2134 (patch) | |
tree | d685958c1541ee19dc009d9e62e6a66797e5e9bd /runtime/lua/vim/diagnostic.lua | |
parent | 6a3acccd8be1c3796c0d1630383046b54b9f994c (diff) | |
download | rneovim-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.lua | 2 |
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 |