2021-07-26 19:14:23 +02:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
M.defaults = {
|
|
|
|
[[
|
|
|
|
function! QuickFixToggle()
|
|
|
|
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
|
|
|
copen
|
|
|
|
else
|
|
|
|
cclose
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
]],
|
2022-02-12 18:16:06 +01:00
|
|
|
[[ command! BufferKill lua require('lvim.core.bufferline').buf_kill('bd') ]],
|
2021-08-09 16:59:27 +02:00
|
|
|
-- :LvimInfo
|
2021-10-10 21:07:41 +02:00
|
|
|
[[ command! LvimInfo lua require('lvim.core.info').toggle_popup(vim.bo.filetype) ]],
|
|
|
|
[[ command! LvimCacheReset lua require('lvim.utils.hooks').reset_cache() ]],
|
|
|
|
[[ command! LvimUpdate lua require('lvim.bootstrap').update() ]],
|
2021-11-02 16:58:55 +01:00
|
|
|
[[ command! LvimSyncCorePlugins lua require('lvim.plugin-loader'):sync_core_plugins() ]],
|
2021-10-31 10:12:05 +01:00
|
|
|
[[ command! LvimReload lua require('lvim.config'):reload() ]],
|
2021-11-14 13:44:00 +01:00
|
|
|
[[ command! LvimToggleFormatOnSave lua require('lvim.core.autocmds').toggle_format_on_save() ]],
|
2021-12-01 21:24:48 +01:00
|
|
|
[[ command! LvimVersion lua require('lvim.core.telescope.custom-finders').view_lunarvim_changelog() ]],
|
2021-07-26 19:14:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
M.load = function(commands)
|
|
|
|
for _, command in ipairs(commands) do
|
|
|
|
vim.cmd(command)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|