auto-save.nvim
auto-save.nvim copied to clipboard
Disable auto save for specific file types?
How can i disable auto save for specific file types like markdown?
Something like this:
condition = function(buf)
local fn = vim.fn
local utils = require("auto-save.utils.data")
if
fn.getbufvar(buf, "&modifiable") == 1 and
utils.not_in(fn.getbufvar(buf, "&filetype"), {"markdown"}) then
return true -- met condition(s), can save
end
return false -- can't save
end,
See the README