aboutsummaryrefslogtreecommitdiff
path: root/.config/yadm/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to '.config/yadm/bootstrap')
-rwxr-xr-x.config/yadm/bootstrap6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap
index c152f92..12282d6 100755
--- a/.config/yadm/bootstrap
+++ b/.config/yadm/bootstrap
@@ -36,8 +36,10 @@ endtask
# note: vim-plug is already installed system-wide (see ./packages-arch)
begintask "installing vim plugins"
-s nvim --headless +'PlugInstall --sync' +qa &&\
-s nvim --headless +CocUpdateSync +qa
+COC_PLUGINS="$(jq --raw-output '.dependencies | keys | join(" ")' \
+ "$XDG_CONFIG_HOME/coc/extensions/package.json")"
+s nvim --headless +"PlugInstall --sync" +qa &&\
+s nvim --headless +"CocInstall -sync $COC_PLUGINS" +qa
endtask
[ -e "$HOME/readme.md" ] ||\