diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-01-09 22:32:00 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-01-09 22:32:00 +0900 |
| commit | 7e6730f2c6b3a8ae43054459a63784d7314ed590 (patch) | |
| tree | cce303d77317838adfbb5e0079ddae92fda3c851 /sync.sh | |
| parent | 19e623a93d897d068bcbcfa78f28a9c2025a44fa (diff) | |
| download | dotfiles-7e6730f2c6b3a8ae43054459a63784d7314ed590.tar.gz dotfiles-7e6730f2c6b3a8ae43054459a63784d7314ed590.tar.zst dotfiles-7e6730f2c6b3a8ae43054459a63784d7314ed590.zip | |
sync: improve neovim sync
Diffstat (limited to 'sync.sh')
| -rwxr-xr-x | sync.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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' |
