add missing QuickFixToggle() function (#752)

This commit is contained in:
Abouzar Parvan 2021-07-07 20:21:00 +04:30 committed by GitHub
parent 2a16537216
commit 14d4fa63cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,17 @@ lv_utils.define_augroups {
-- },
}
vim.cmd([[
function! QuickFixToggle()
if empty(filter(getwininfo(), 'v:val.quickfix'))
copen
else
cclose
endif
endfunction
]]
)
return lv_utils
-- TODO find a new home for these autocommands