mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-31 16:14:34 +02:00
[Refactor] remove lv prefix (#1112)
* Rename lv-utils into utils * Move commands defined in utils into core/commands.lua
This commit is contained in:
parent
623994af2a
commit
12c0a7441e
10 changed files with 62 additions and 50 deletions
21
lua/core/commands.lua
Normal file
21
lua/core/commands.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue