mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
12c0a7441e
* Rename lv-utils into utils * Move commands defined in utils into core/commands.lua
21 lines
292 B
Lua
21 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
|