mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-05-26 00:07:47 +00:00
formatted config and added print
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user