commit f47db8cdae0dbb7cbe36e820bfa948b64535876e
parent 9072cd50de668cd4d0f12104fce987fa3c11b34f
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Wed, 11 May 2022 21:37:42 +0200
Fix neovim bootstrapping
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/.config/nvim/lua/bootstrap-paq.lua b/.config/nvim/lua/bootstrap-paq.lua
@@ -1,4 +1,5 @@
local function paq_install()
+ vim.g.headless_bootstrap = true
local paq = require("plugins")
vim.cmd "autocmd User PaqDoneInstall quit"
paq.install()
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
@@ -11,6 +11,11 @@ local ret = require("paq") {
{ url="https://dev.sanctum.geek.nz/code/vim-redact-pass.git", shallow=false }, -- disable leaky options when editing passwords with pass
}
+-- don't run the package configs if we are doing the initial bootstrap
+if vim.g.headless_bootstrap then
+ return ret
+end
+
do -- vim-commentary
vim.cmd [[