diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index ae67983..b8291b6 --- a/install.sh +++ b/install.sh @@ -1,9 +1,11 @@ +#! /usr/bin/env bash + ln -rsf ./.vimrc ~/ ln -rsf ./.mailcap ~/ ln -rsf ./.muttrc ~/ ln -rsf ./.signature ~/ ln -rsf ./.tmux.conf ~/ -# share vim config with neovim +# dedicated neovim config that sources ~/.vimrc and builds on top mkdir -p ~/.config/nvim -ln -rsf ./.vimrc ~/.config/nvim/init.vim +ln -rsf ./nvim/init.vim ~/.config/nvim/init.vim diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..c389125 --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,17 @@ +" Neovim entry point. +" +" Reuses the shared vim config, then layers neovim-only settings on top. +" Keep vim/neovim-agnostic settings in ~/.vimrc so plain vim gets them too; +" put anything neovim-specific below. + +source ~/.vimrc + +""""""""""" Neovim-specific settings below """"""""""" + +" Example: neovim ships its own defaults, so a few vim compatibility shims +" in .vimrc are harmless here. Add nvim-only tweaks, plugins, or lua as needed. +" +" To use lua from here: +" lua << EOF +" -- your lua config +" EOF