diff options
author | kylo252 <[email protected]> | 2022-01-10 09:59:20 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-01-10 09:59:20 +0100 |
commit | 579064b88119538d0a13edf798d1a4f8875b6472 (patch) | |
tree | fd40e3ddef76a83a4c96c03457e9834777379c0d /lua/lvim/plugin-loader.lua | |
parent | 8fe7cf2fac461b2136e815e3107b434cd407a09d (diff) | |
parent | ec1e4140fa4156df50785da5d6297145762a7daa (diff) |
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index c5220d59..0fbe9971 100644 --- a/lua/lvim/plugin-loader.lua +++ b/lua/lvim/plugin-loader.lua @@ -43,7 +43,9 @@ function plugin_loader.init(opts) }, } - vim.cmd [[autocmd User PackerComplete lua require('lvim.utils.hooks').run_on_packer_complete()]] + if not in_headless then + vim.cmd [[autocmd User PackerComplete lua require('lvim.utils.hooks').run_on_packer_complete()]] + end end -- packer expects a space separated list @@ -113,7 +115,6 @@ function plugin_loader.sync_core_plugins() end function plugin_loader.ensure_installed() - plugin_loader.cache_clear() local all_plugins = _G.packer_plugins or plugin_loader.get_core_plugins() Log:trace(string.format("Syncing core plugins: [%q]", table.concat(all_plugins, ", "))) pcall_packer_command("install", all_plugins) |