Moved VIM script to software.yml
This commit is contained in:
parent
cb6d3aa3f5
commit
cfac1520e9
2 changed files with 3 additions and 21 deletions
|
@ -1,20 +0,0 @@
|
||||||
{{- if ne .host.distro.family "windows" -}}
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
# @file VIM Plugin Pre-Install
|
|
||||||
# @brief Pre-installs the VIM plugins from their git sources
|
|
||||||
# @description
|
|
||||||
# This script pre-installs the VIM plugins defined in [`.chezmoidata.yaml`](https://github.com/megabyte-labs/install.doctor/tree/master/home/.chezmoidata.yaml)
|
|
||||||
# so that VIM does not have to do anything on its first launch.
|
|
||||||
|
|
||||||
{{ includeTemplate "universal/profile" }}
|
|
||||||
{{ includeTemplate "universal/logg" }}
|
|
||||||
|
|
||||||
function vimSetup() {
|
|
||||||
### Run the VIM plugin install routine
|
|
||||||
if command -v vim > /dev/null; then
|
|
||||||
logg info 'Running vim +PlugInstall +qall' && vim +'PlugInstall --sync' +qall &> /dev/null || logg error 'Failed to run vim +PlugInstall +qall +silent'
|
|
||||||
logg info 'Running vim +CocUpdateSync +qall' && vim +CocUpdateSync +qall || logg error 'Failed to run vim +CocUpdateSync +qall'
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
vimSetup
|
|
||||||
{{ end -}}
|
|
|
@ -10107,7 +10107,9 @@ softwarePackages:
|
||||||
_github: https://github.com/vim/vim
|
_github: https://github.com/vim/vim
|
||||||
_home: https://www.vim.org/
|
_home: https://www.vim.org/
|
||||||
_name: VIM
|
_name: VIM
|
||||||
_post: vim +PlugInstall +qall +silent > /dev/null
|
_post: |
|
||||||
|
echo "Installing VIM plugins" && vim +'PlugInstall --sync' +qall
|
||||||
|
echo "Updating VIM coc extensions" && vim +CocUpdateSync +qall
|
||||||
ansible: professormanhattan.vim
|
ansible: professormanhattan.vim
|
||||||
apt: vim
|
apt: vim
|
||||||
brew: vim
|
brew: vim
|
||||||
|
|
Loading…
Reference in a new issue