Auto save occurs after entering normal mode and time set gone or modifying in normal mode and time set gone.
Make 'aggutosave.lua'(name is free) on plugin folder and paste it.
return {
"ChoIstAgg/AggutoSave.nvim",
opts = {
delay = 5,
extensions = {
"txt",
"md",
-- Add extensions you want!
-- e.g. cpp, rs, html, etc.
},
},
}