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
+19
View File
@@ -0,0 +1,19 @@
local opts = require("autosave.config").options
local cmd = vim.cmd
local M = {}
local function setup_commands()
if (opts["on_off_commands"] == true) then
cmd([[command! ASOn lua require'autosave.main'.main('on')]])
cmd([[command! ASOff lua require'autosave.main'.main('off')]])
end
end
function M.setup(custom_opts)
require("autosave.config").set_options(custom_opts)
setup_commands()
end
return M