added 'clean_command_line_interval' option

This commit is contained in:
kdav5758
2021-07-01 17:55:31 -05:00
parent afc219aa64
commit 58caad5b78
2 changed files with 7 additions and 1 deletions

View File

@@ -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)

View File

@@ -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()