[Refactor] remove lv prefix (#1112)

* Rename lv-utils into utils

* Move commands defined in utils into core/commands.lua
This commit is contained in:
Luc Sinet 2021-07-26 19:14:23 +02:00 committed by GitHub
parent 623994af2a
commit 12c0a7441e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 62 additions and 50 deletions

21
lua/core/commands.lua Normal file
View file

@ -0,0 +1,21 @@
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