|
if cnf.opts.write_all_buffers then |
|
cmd("silent! wall") |
|
else |
|
api.nvim_buf_call(buf, function() |
|
cmd("silent! write") |
|
end) |
|
end |
It would be great if there could be an option to either:
- Support a
:noautocmd mode, so we can disable autocommands on auto-saves (e.g., disable formatting when this plugin saves)
- Support specifying the write commands and default to the
wall and write commands that are already here.
auto-save.nvim/lua/auto-save/init.lua
Lines 75 to 81 in 979b6c8
It would be great if there could be an option to either:
:noautocmdmode, so we can disable autocommands on auto-saves (e.g., disable formatting when this plugin saves)wallandwritecommands that are already here.