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")
if
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
end
return false -- can't save