From 3d12923f643a2931c3d7cb34e71fe3f6083c7d99 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Mon, 29 Apr 2024 08:55:02 +0200 Subject: home/neovim: Add temporary, impure vimrc source This was a huge help when testing changes to vimrc without having to do a full {nixos,darwin}-rebuild. --- home/neovim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'home/neovim/init.vim') diff --git a/home/neovim/init.vim b/home/neovim/init.vim index f55412b..007727d 100644 --- a/home/neovim/init.vim +++ b/home/neovim/init.vim @@ -255,3 +255,10 @@ augroup Sus au InsertEnter * call s:RemoveSyntax() au InsertLeave * call s:AddSyntax() augroup END + +" Allow for quick prototyping outside of NixOS/Home-Manager by loading some +" extra configuration if relevant. +let extra_vimrc = expand("~/extra-temporary.vimrc") +if filereadable(extra_vimrc) + execute "source " . extra_vimrc +endif -- cgit v1.2.3