From 7e6730f2c6b3a8ae43054459a63784d7314ed590 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 9 Jan 2023 22:32:00 +0900 Subject: sync: improve neovim sync --- sync.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sync.sh') 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' -- cgit v1.2.3-70-g09d2