From 6cdd3b4b282d79130dc6f2b346cb509ddbb6fa48 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 20 Oct 2022 23:58:14 +0200 Subject: luasnip integration --- autoload/scripts.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 autoload/scripts.vim (limited to 'autoload') 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 + + -- cgit v1.2.3