fixed load at startup

This commit is contained in:
kdav5758
2021-07-04 21:30:19 -05:00
parent d674c2755b
commit 83bf8c1c98
3 changed files with 7 additions and 7 deletions
+7
View File
@@ -4,6 +4,12 @@ local cmd = vim.cmd
local M = {}
local function setup_load()
if (opts["enabled"] == true) then
require('autosave.main').main('on')
end
end
local function setup_commands()
if (opts["on_off_commands"] == true) then
cmd([[command! ASOn lua require'autosave.main'.main('on')]])
@@ -13,6 +19,7 @@ end
function M.setup(custom_opts)
require("autosave.config").set_options(custom_opts)
setup_load()
setup_commands()
end