mirror of https://github.com/NvChad/NvChad
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
539 B
Lua
20 lines
539 B
Lua
3 years ago
|
-- autosave.nvim plugin disabled by default
|
||
3 years ago
|
local present, autosave = pcall(require, "autosave")
|
||
|
if not present then
|
||
3 years ago
|
return
|
||
3 years ago
|
end
|
||
|
|
||
3 years ago
|
autosave.setup {
|
||
3 years ago
|
enabled = vim.g.auto_save or false, -- takes boolean value from init.lua
|
||
3 years ago
|
execution_message = "autosaved at : " .. vim.fn.strftime "%H:%M:%S",
|
||
|
events = { "InsertLeave", "TextChanged" },
|
||
|
conditions = {
|
||
|
exists = true,
|
||
|
filetype_is_not = {},
|
||
|
modifiable = true,
|
||
|
},
|
||
|
clean_command_line_interval = 2500,
|
||
3 years ago
|
on_off_commands = true,
|
||
|
write_all_buffers = false,
|
||
3 years ago
|
}
|