nvim: autocmd: Open quickfix & localist list if populated

This is required when using vimgrep without which we will
have to invoke copen or lopen manually.
This commit is contained in:
Sanchayan Maity 2024-07-13 20:03:35 +05:30
parent e54dd071f6
commit 0e45f3229a
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -42,6 +42,18 @@ local aucmd_dict = {
pattern = "*", pattern = "*",
command = "set guicursor=a:hor1-blinkon0" command = "set guicursor=a:hor1-blinkon0"
} }
},
QuickFixCmdPost = {
{
group = custom_augroup_id,
pattern = "[^l]*",
command = "cwindow"
},
{
group = custom_augroup_id,
pattern = "l*",
command = "lwindow"
}
} }
} }