diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -13,6 +13,7 @@ gToolsConfig=( "gitconfig:git:gitConfigInstaller" "tmux.conf:tmux:tmuxConfigInstaller" "vimrc:vim:vimConfigInstaller" +"nvim:nvim:nvimConfigInstaller" "emacs:emacs:emacsInstaller" "Xresources:xterm:xtermConfigInstaller" "i3config:i3:i3ConfigInstaller" @@ -126,6 +127,21 @@ function vimConfigInstaller() { } #}}} +#{{{ nvimConfigInstaller + +function nvimConfigInstaller() { + local vimrc=~/.config/nvim/init.vim + touch $vimrc + grep $gMagicNumber $vimrc > /dev/null 2>&1 + if [[ $? = 0 ]]; then + return 1 + fi + echo -e "\n\" $gMagicNumber - Auto generated, do not delete or modify!" >> $vimrc + echo -e "source $ABS_BASE_DIR/nvim.init.vim" >> $vimrc + return 0 +} + +#}}} #{{{ emacsInstaller function emacsInstaller() { |