mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-21 11:22:34 -05:00
Don't check for neovim since we're only using neovim, and generate the rplugin manifest globally on update
This commit is contained in:
parent
ca47b5e220
commit
6791c410aa
3 changed files with 17 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
vim/bundle.user/*
|
||||
vim/user.vim
|
||||
vim/rplugin.vim
|
||||
|
|
6
init.vim
6
init.vim
|
@ -14,6 +14,12 @@
|
|||
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: {{{
|
||||
"Add Config Directory: (distro-agnostic system-wide)
|
||||
let &runtimepath = printf('%s,%s/vim,%s/vim/after',&runtimepath,g:darkcloudpath,g:darkcloudpath)
|
||||
|
|
22
update
22
update
|
@ -261,19 +261,17 @@ type -P vim >/dev/null && {
|
|||
fi
|
||||
}
|
||||
|
||||
### UPDATE REMOTE PLUGINS IN NEOVIM
|
||||
type -P nvim >/dev/null && {
|
||||
printf '%s' "$cbg_blue >> Updating remote plugins for neovim:$c_reset"
|
||||
$timeout_command --preserve-status --foreground 1m nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'
|
||||
### UPDATE REMOTE PLUGINS
|
||||
printf '%s' "$cbg_blue >> Updating remote plugins for neovim:$c_reset"
|
||||
$timeout_command --preserve-status --foreground 1m nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'
|
||||
|
||||
if (( ! $? )); then
|
||||
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
|
||||
else
|
||||
reset -I
|
||||
printf '%s\n' "$cfg_red_bold FAIL! $c_reset"
|
||||
error "nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'" 'Updating remote plugins for neovim failed'
|
||||
fi
|
||||
}
|
||||
if (( ! $? )); then
|
||||
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
|
||||
else
|
||||
reset -I
|
||||
printf '%s\n' "$cfg_red_bold FAIL! $c_reset"
|
||||
error "nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'" 'Updating remote plugins for neovim failed'
|
||||
fi
|
||||
|
||||
### FINISH
|
||||
printf '\n%s\n\n' "$cbg_black ~~~ Update Complete ~~~ $c_reset"
|
||||
|
|
Loading…
Reference in a new issue