LunarVim/lua/core/commands.lua
kylo252 a273c46eee
feat: add LvimUpdate command (#1634)
* feat: add prelimenary LvimUpdate command

* feat: use native process management

* feat: add a telescope change-log utility

* fix: update readme to include the new command
2021-10-01 13:27:06 +02:00

25 lines
522 B
Lua

local M = {}
M.defaults = {
[[
function! QuickFixToggle()
if empty(filter(getwininfo(), 'v:val.quickfix'))
copen
else
cclose
endif
endfunction
]],
-- :LvimInfo
[[command! LvimInfo lua require('core.info').toggle_popup(vim.bo.filetype)]],
[[ command! LvimCacheReset lua require('bootstrap').reset_cache() ]],
[[ command! LvimUpdate lua require('bootstrap').update() ]],
}
M.load = function(commands)
for _, command in ipairs(commands) do
vim.cmd(command)
end
end
return M