diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-10-20 23:58:14 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-10-20 23:58:14 +0200 |
| commit | 6cdd3b4b282d79130dc6f2b346cb509ddbb6fa48 (patch) | |
| tree | 1c08d622e135b669381a0889c54012f70929514d /autoload | |
| parent | 97be95d96b96c42dab64dff7018a89baa22384ee (diff) | |
| download | dotfiles-6cdd3b4b282d79130dc6f2b346cb509ddbb6fa48.tar.gz dotfiles-6cdd3b4b282d79130dc6f2b346cb509ddbb6fa48.zip | |
luasnip integration
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/scripts.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/autoload/scripts.vim b/autoload/scripts.vim new file mode 100644 index 0000000..5c695d3 --- /dev/null +++ b/autoload/scripts.vim @@ -0,0 +1,15 @@ +if !exists('*scripts#save_and_exec') + function! scripts#save_and_exec() abort + if &filetype == 'vim' + :silent! write + :source % + elseif &filetype == 'lua' + :silent! write + :luafile % + endif + + return + endfunction +endif + + |
