From 8e103dd8be3d2ea6bf38858da8d2b5a507886ece Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 7 Jan 2021 21:17:59 +0100 Subject: added nvim rc --- install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'install') diff --git a/install b/install index bcbec99..450d70e 100755 --- a/install +++ b/install @@ -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" @@ -125,6 +126,21 @@ function vimConfigInstaller() { return 0 } +#}}} +#{{{ 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 -- cgit v1.2.3