diff options
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() | 
