mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-21 19:32:31 -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)
|
||||
|
|
4
update
4
update
|
@ -261,8 +261,7 @@ type -P vim >/dev/null && {
|
|||
fi
|
||||
}
|
||||
|
||||
### UPDATE REMOTE PLUGINS IN NEOVIM
|
||||
type -P nvim >/dev/null && {
|
||||
### 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!'
|
||||
|
||||
|
@ -273,7 +272,6 @@ type -P nvim >/dev/null && {
|
|||
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