aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/plugin/autosave.vim
blob: ab8a22782fa2a41b73bc3adc5c00bbfc1603cb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
scriptencoding utf-8

if exists('g:loaded_autosave')
    finish
endif


command! -bar
    \ AutosaveEnable
    \ lua require('autosave').enable()

command! -bar
    \ AutosaveDisable
    \ lua require('autosave').disable()

command! -bar
    \ AutosaveToggle
    \ lua require('autosave').toggle()


let g:loaded_autosave = 1