mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2025-12-06 06:36:11 +00:00
added 'clean_command_line_interval' option
This commit is contained in:
@@ -7,7 +7,8 @@ config.options = {
|
||||
write_all_buffers = false,
|
||||
on_off_commands = false,
|
||||
save_only_if_exists = true,
|
||||
excluded_filetypes = {}
|
||||
excluded_filetypes = {},
|
||||
clean_command_line_interval = 0
|
||||
}
|
||||
|
||||
function config.set_options(opts)
|
||||
|
||||
@@ -64,7 +64,12 @@ function M.save()
|
||||
|
||||
if (opts["execution_message"] ~= "" and get_modified() == true) then
|
||||
print(opts["execution_message"])
|
||||
set_modified(false)
|
||||
end
|
||||
|
||||
if (opts["clean_command_line_interval"] > 0) then
|
||||
cmd([[sleep ]] .. opts["clean_command_line_interval"] .. [[ | echon '']])
|
||||
end
|
||||
end
|
||||
|
||||
local function parse_events()
|
||||
|
||||
Reference in New Issue
Block a user