aboutsummaryrefslogtreecommitdiffhomepage
path: root/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sync.sh')
-rwxr-xr-xsync.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sync.sh b/sync.sh
index 690fd9b..1fdb9e3 100755
--- a/sync.sh
+++ b/sync.sh
@@ -18,6 +18,9 @@ if type nvim >/dev/null 2>&1; then
nvim_conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
if [ -d "$packer_nvim_dir" -a -d "$nvim_conf_dir" ]; then
echo "neovim: compile"
+ if [ -f "$nvim_conf_dir/plugin/packer_compiled.lua" ]; then
+ rm -f "$nvim_conf_dir/plugin/packer_compiled.lua"
+ fi
nvim --headless -u "$nvim_conf_dir/init.mini.lua" -c 'autocmd User PackerCompileDone quitall' -c 'PackerCompile'
echo "neovim: sync"
nvim --headless -u "$nvim_conf_dir/init.mini.lua" -c 'autocmd User PackerComplete quitall' -c 'PackerSync'