first commit

This commit is contained in:
kdav5758
2021-07-01 16:55:41 -05:00
parent 969be18e92
commit 2c8790b006
11 changed files with 282 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
" GPL-3.0 License
" prevent the plugin from loading twice
if exists('g:loaded_autosave') | finish | endif
let s:save_cpo = &cpo " save user coptions
set cpo&vim " reset them to defaults
" main {{{
lua require('autosave.main').main('startup')
" }}}
" Interface {{{
command! ASToggle lua require'autosave.main'.main('toggle')
" }}}
let &cpo = s:save_cpo " restore after
unlet s:save_cpo
" set to true the var that controls the plugin's loading
let g:loaded_autosave = 1