feat: clean up utils reload fn
This commit is contained in:
parent
cd80504765
commit
84c7f848e8
1 changed files with 1 additions and 2 deletions
|
@ -74,11 +74,10 @@ function M.post_reload(msg)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.reload_user_config_sync()
|
function M.reload_user_config_sync()
|
||||||
M.reload_user_config()
|
|
||||||
clear_cache()
|
clear_cache()
|
||||||
unload('cosmic.core.user', true)
|
unload('cosmic.core.user', true)
|
||||||
unload('cosmic.core.pluginsInit', true)
|
unload('cosmic.core.pluginsInit', true)
|
||||||
vim.api.nvim_create_autocmd('User PackerCompileDone', {
|
vim.api.nvim_create_autocmd('User PackerComplete', {
|
||||||
callback = function()
|
callback = function()
|
||||||
M.post_reload()
|
M.post_reload()
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue