Don't check for neovim since we're only using neovim, and generate the rplugin manifest globally on update

This commit is contained in:
Kevin MacMartin 2024-03-01 23:17:51 -05:00
parent ca47b5e220
commit 6791c410aa
3 changed files with 17 additions and 12 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
vim/bundle.user/* vim/bundle.user/*
vim/user.vim vim/user.vim
vim/rplugin.vim

View file

@ -14,6 +14,12 @@
let g:darkcloudpath = get(g:, "darkcloudpath", "/etc/darkcloud-nvimconfig") let g:darkcloudpath = get(g:, "darkcloudpath", "/etc/darkcloud-nvimconfig")
"}}} "}}}
"rplugin location: {{{
lua << EOF
vim.env.NVIM_RPLUGIN_MANIFEST = vim.g.darkcloudpath .. "/vim/rplugin.vim"
EOF
"}}}
"LOAD DARKCLOUD CONFIG AND THEME FILES: {{{ "LOAD DARKCLOUD CONFIG AND THEME FILES: {{{
"Add Config Directory: (distro-agnostic system-wide) "Add Config Directory: (distro-agnostic system-wide)
let &runtimepath = printf('%s,%s/vim,%s/vim/after',&runtimepath,g:darkcloudpath,g:darkcloudpath) let &runtimepath = printf('%s,%s/vim,%s/vim/after',&runtimepath,g:darkcloudpath,g:darkcloudpath)

14
update
View file

@ -261,19 +261,17 @@ type -P vim >/dev/null && {
fi fi
} }
### UPDATE REMOTE PLUGINS IN NEOVIM ### UPDATE REMOTE PLUGINS
type -P nvim >/dev/null && { printf '%s' "$cbg_blue >> Updating remote plugins for neovim:$c_reset"
printf '%s' "$cbg_blue >> Updating remote plugins for neovim:$c_reset" $timeout_command --preserve-status --foreground 1m nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'
$timeout_command --preserve-status --foreground 1m nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'
if (( ! $? )); then if (( ! $? )); then
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset" printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
else else
reset -I reset -I
printf '%s\n' "$cfg_red_bold FAIL! $c_reset" printf '%s\n' "$cfg_red_bold FAIL! $c_reset"
error "nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'" 'Updating remote plugins for neovim failed' error "nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'" 'Updating remote plugins for neovim failed'
fi fi
}
### FINISH ### FINISH
printf '\n%s\n\n' "$cbg_black ~~~ Update Complete ~~~ $c_reset" printf '\n%s\n\n' "$cbg_black ~~~ Update Complete ~~~ $c_reset"