mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 07:09:23 +02:00
add missing QuickFixToggle() function (#752)
This commit is contained in:
parent
2a16537216
commit
14d4fa63cd
1 changed files with 11 additions and 0 deletions
|
@ -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
|
return lv_utils
|
||||||
|
|
||||||
-- TODO find a new home for these autocommands
|
-- TODO find a new home for these autocommands
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue