mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 11:05:08 +02:00
22 lines
292 B
Lua
22 lines
292 B
Lua
|
local M = {}
|
||
|
|
||
|
M.defaults = {
|
||
|
[[
|
||
|
function! QuickFixToggle()
|
||
|
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
||
|
copen
|
||
|
else
|
||
|
cclose
|
||
|
endif
|
||
|
endfunction
|
||
|
]],
|
||
|
}
|
||
|
|
||
|
M.load = function(commands)
|
||
|
for _, command in ipairs(commands) do
|
||
|
vim.cmd(command)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return M
|