summaryrefslogtreecommitdiff
path: root/lua/lvim/plugin-loader.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-10-31 16:27:12 +0100
committerGitHub <[email protected]>2022-10-31 16:27:12 +0100
commit74ad56ff68f9853a3cdb6004bf01162911bcadd6 (patch)
treeacc38539db66a6d8dba7ca2d6e3f273ff6a3b125 /lua/lvim/plugin-loader.lua
parent3d6338e16ee7f03de3de303e2de6d5ec5e37ba93 (diff)
refactor(installer): skip unstable headless update (#3338)
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r--lua/lvim/plugin-loader.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua
index f6cb4651..1f574bba 100644
--- a/lua/lvim/plugin-loader.lua
+++ b/lua/lvim/plugin-loader.lua
@@ -42,11 +42,10 @@ function plugin_loader.init(opts)
end
if not utils.is_directory(install_path) then
- vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
+ print "Initializing first time setup"
+ print "Installing packer"
+ print(vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd "packadd packer.nvim"
- -- IMPORTANT: we only set this the very first time to avoid constantly triggering the rollback function
- -- https://github.com/wbthomason/packer.nvim/blob/c576ab3f1488ee86d60fd340d01ade08dcabd256/lua/packer.lua#L998-L995
- init_opts.snapshot = default_snapshot
end
local status_ok, packer = pcall(require, "packer")