aboutsummaryrefslogtreecommitdiff
path: root/lua/config/autosave.lua
blob: 70893054f76a194ca97136911db73db06fdac797 (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 = {},
		filetype_is_not = {},
		modifiable = true,
	},
	write_all_buffers = false,
	on_off_commands = true,
	clean_command_line_interval = 1000,
	debounce_delay = 135,
})