Found during the fresh-macOS install documented in #20.
Problem
PlugInstall never runs in vim — on a full fresh install the plugins listed in home/dot_vimrc are not installed.
Context
home/.chezmoiexternals/vim_plug.toml fetches ~/.vim/autoload/plug.vim (the vim-plug manager).
home/dot_vimrc declares plugins between call plug#begin('~/.vim/bundle') and call plug#end().
- But nothing ever runs
vim +PlugInstall +qall (or the headless equivalent), so a fresh machine has the manager and the config but none of the actual plugins.
Suggested direction
Add a run_onchange_after_ script that runs vim headless to install/sync plugins (e.g. vim -es -u ~/.vimrc -i NONE -c "PlugInstall --sync" -c qa), keyed on the plugin section of dot_vimrc so it re-syncs when the plugin list changes. Should no-op cleanly if vim isn't installed.
Found during the fresh-macOS install documented in #20.
Problem
PlugInstallnever runs in vim — on a full fresh install the plugins listed inhome/dot_vimrcare not installed.Context
home/.chezmoiexternals/vim_plug.tomlfetches~/.vim/autoload/plug.vim(the vim-plug manager).home/dot_vimrcdeclares plugins betweencall plug#begin('~/.vim/bundle')andcall plug#end().vim +PlugInstall +qall(or the headless equivalent), so a fresh machine has the manager and the config but none of the actual plugins.Suggested direction
Add a
run_onchange_after_script that runsvimheadless to install/sync plugins (e.g.vim -es -u ~/.vimrc -i NONE -c "PlugInstall --sync" -c qa), keyed on the plugin section ofdot_vimrcso it re-syncs when the plugin list changes. Should no-op cleanly if vim isn't installed.