From 0da3d66b4c9360160a5a6a3fa89d5c6257aa1e90 Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 3 Jul 2026 10:24:33 +0200 Subject: [PATCH] feat: initial nvim config --- install.sh | 6 ++++-- nvim/init.vim | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) mode change 100644 => 100755 install.sh create mode 100644 nvim/init.vim 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