aboutsummaryrefslogtreecommitdiff
path: root/lua/config/autosave.lua
blob: d290e7fd6a1a9c7caf1e5af6273bf0b166ee2b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require("autosave").setup({
	enabled = true,
	execution_message = "Autosaved at " .. vim.fn.strftime("%H:%M:%S"),
	events = { "InsertLeave", "TextChanged" },
	conditions = {
		exists = true,
		filename_is_not = {"plugins.lua"},
		filetype_is_not = {},
		modifiable = true,
	},
	write_all_buffers = false,
	on_off_commands = true,
	clean_command_line_interval = 1000,
	debounce_delay = 135,
})