mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-06-04 03:05:57 +00:00
first commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user