This commit is contained in:
thek4n 2024-05-22 13:35:53 +03:00
parent f0945e885e
commit cd88354c40

View File

@ -16,7 +16,8 @@ return {
local utils = require("auto-save.utils.data") local utils = require("auto-save.utils.data")
if if
fn.getbufvar(buf, "&modifiable") == 1 and fn.getbufvar(buf, "&modifiable") == 1 and
utils.not_in(fn.getbufvar(buf, "&filetype"), {}) then utils.not_in(fn.getbufvar(buf, "&filetype"), {})
then
return true -- met condition(s), can save return true -- met condition(s), can save
end end
return false -- can't save return false -- can't save