feat: initial nvim config

This commit is contained in:
ayo 2026-07-03 10:24:33 +02:00
parent 40f9e4a17b
commit 0da3d66b4c
2 changed files with 21 additions and 2 deletions

6
install.sh Normal file → Executable file
View file

@ -1,9 +1,11 @@
#! /usr/bin/env bash
ln -rsf ./.vimrc ~/ ln -rsf ./.vimrc ~/
ln -rsf ./.mailcap ~/ ln -rsf ./.mailcap ~/
ln -rsf ./.muttrc ~/ ln -rsf ./.muttrc ~/
ln -rsf ./.signature ~/ ln -rsf ./.signature ~/
ln -rsf ./.tmux.conf ~/ ln -rsf ./.tmux.conf ~/
# share vim config with neovim # dedicated neovim config that sources ~/.vimrc and builds on top
mkdir -p ~/.config/nvim mkdir -p ~/.config/nvim
ln -rsf ./.vimrc ~/.config/nvim/init.vim ln -rsf ./nvim/init.vim ~/.config/nvim/init.vim

17
nvim/init.vim Normal file
View file

@ -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