refactor(nvim): manage Neovim with Home Manager

This commit is contained in:
Oliver Davies 2022-10-04 09:26:08 +01:00
commit a66d1c417d
41 changed files with 1793 additions and 0 deletions

12
autoload/opdavies.vim Normal file
View file

@ -0,0 +1,12 @@
if !exists('*opdavies#save_and_exec')
function! opdavies#save_and_exec() abort
if &filetype == 'vim'
:silent! write
:source %
elseif &filetype == 'lua'
:silent! write
:luafile %
endif
return
endfunction
endif