formatted config and added print

This commit is contained in:
kdav5758
2021-07-01 17:24:17 -05:00
parent 2c8790b006
commit e92b0cc692
2 changed files with 8 additions and 7 deletions
+5 -7
View File
@@ -1,15 +1,13 @@
local config = {}
--
config.options = {
enabled = true,
execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"),
enabled = true,
execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"),
events = {"InsertLeave", "TextChanged"},
write_all_buffers = false,
on_off_commands = false,
save_only_if_exists = true,
excluded_filetypes = {},
on_off_commands = false,
save_only_if_exists = true,
excluded_filetypes = {}
}
function config.set_options(opts)
+3
View File
@@ -68,6 +68,9 @@ local function parse_events()
end
function M.load_autocommands()
print("Parsed events = " .. tostring(parse_events()))
api.nvim_exec(
[[
augroup autosave_save