aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-02 19:36:08 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-02 19:36:08 +0100
commit7d53a26a6b801251001635e94cd5a08c12304a77 (patch)
treed963b108d0b2039f9d2536bd61e338ca2aafaa64
parent1deef8e1a82c839120b49188819c8a6880d964f4 (diff)
proper CocInstall in bootstrap
-rw-r--r--.config/coc/extensions/package.json20
-rw-r--r--.config/nvim/init.vim7
-rwxr-xr-x.config/yadm/bootstrap6
3 files changed, 14 insertions, 19 deletions
diff --git a/.config/coc/extensions/package.json b/.config/coc/extensions/package.json
index c2e9424..24d9e5d 100644
--- a/.config/coc/extensions/package.json
+++ b/.config/coc/extensions/package.json
@@ -1,21 +1,21 @@
{
"dependencies": {
- "coc-css": ">=1.3.0",
+ "coc-css": ">=2.1.0",
"coc-emmet": ">=1.1.6",
- "coc-go": ">=1.3.0",
- "coc-html": ">=1.6.1",
+ "coc-go": ">=1.3.33",
+ "coc-html": ">=1.8.0",
"coc-java": ">=1.15.2",
- "coc-json": ">=1.6.1",
+ "coc-json": ">=1.9.2",
"coc-neosnippet": ">=1.2.2",
- "coc-python": ">=1.2.12",
- "coc-rust-analyzer": ">=0.68.2",
- "coc-tsserver": ">=1.5.8",
+ "coc-python": ">=1.2.13",
+ "coc-rust-analyzer": ">=0.75.2",
+ "coc-tsserver": ">=2.1.4",
"coc-vimtex": ">=1.1.5",
- "coc-lua": ">=2.0.5",
- "coc-deno": ">=3.12.0",
+ "coc-lua": ">=2.0.6",
+ "coc-deno": ">=3.13.0",
"coc-sh": ">=1.2.2"
},
"disabled": [],
"locked": [],
- "lastUpdate": 1709403736637
+ "lastUpdate": 1709404256776
} \ No newline at end of file
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index cca0aa9..4fa1894 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -43,13 +43,6 @@ if exists("g:neovide")
let g:neovide_padding_bottom=16
endif
-if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
- echo "Downloading junegunn/vim-plug to manage plugins..."
- silent !mkdir -p ~/.config/nvim/autoload/
- silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
- autocmd VimEnter * PlugInstall
-endif
-
" plugged
call plug#begin('~/.config/nvim/plugged')
" quality of life
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" ] ||\