summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-04-29 08:55:02 +0200
committerLinnnus <[email protected]>2024-04-29 08:55:02 +0200
commit3d12923f643a2931c3d7cb34e71fe3f6083c7d99 (patch)
tree40399844819971c8fa83f16b0514906d36f1a5d3 /home
parent16bbc166528b674751c638a6e2210b8d1d2bfa26 (diff)
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.
Diffstat (limited to 'home')
-rw-r--r--home/neovim/init.vim7
1 files changed, 7 insertions, 0 deletions
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