summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-01-07 21:17:59 +0100
committerjohannst <johannes.stoelp@gmail.com>2021-01-07 21:17:59 +0100
commit8e103dd8be3d2ea6bf38858da8d2b5a507886ece (patch)
treed38247bea9025af98d9a1fe7fa05ea8d57de01ef /install
parent4c92182cbf9b28b78c5a70886b24358c3a0b8776 (diff)
downloaddotfiles-8e103dd8be3d2ea6bf38858da8d2b5a507886ece.tar.gz
dotfiles-8e103dd8be3d2ea6bf38858da8d2b5a507886ece.zip
added nvim rc
Diffstat (limited to 'install')
-rwxr-xr-xinstall16
1 files changed, 16 insertions, 0 deletions
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"
@@ -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() {