diff options
author | Christian Chiarulli <[email protected]> | 2022-11-02 18:09:35 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-02 18:09:35 -0400 |
commit | 531ddb459e6be85e3425c8ed7a237c81992108fe (patch) | |
tree | cf07e06c7b4b7203747492eca06d4317ad1a83da /lua/lvim/plugin-loader.lua | |
parent | f6e5dc0d44c757f4fc73fa4c28d05b7b05ff1650 (diff) |
fix: rollback plugin loader changes (#3402)
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index b786bfa7..1f574bba 100644 --- a/lua/lvim/plugin-loader.lua +++ b/lua/lvim/plugin-loader.lua @@ -69,9 +69,6 @@ local function pcall_packer_command(cmd, kwargs) end function plugin_loader.cache_clear() - if not utils.is_file(compile_path) then - return - end if vim.fn.delete(compile_path) == 0 then Log:debug "deleted packer_compiled.lua" end @@ -79,17 +76,10 @@ end function plugin_loader.recompile() plugin_loader.cache_clear() - vim.cmd [[LuaCacheClear]] pcall_packer_command "compile" - vim.api.nvim_create_autocmd("User", { - pattern = "PackerCompileDone", - once = true, - callback = function() - if utils.is_file(compile_path) then - Log:debug "generated packer_compiled.lua" - end - end, - }) + if utils.is_file(compile_path) then + Log:debug "generated packer_compiled.lua" + end end function plugin_loader.reload(configurations) @@ -160,11 +150,7 @@ function plugin_loader.sync_core_plugins() require("lvim.plugin-loader").load_snapshot(default_snapshot) end, }) - - plugin_loader.cache_clear() - local core_plugins = plugin_loader.get_core_plugins() - Log:trace(string.format("Syncing core plugins: [%q]", table.concat(core_plugins, ", "))) - pcall_packer_command("sync", core_plugins) + pcall_packer_command "sync" end function plugin_loader.ensure_plugins() |