Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support :noautocmd write #89

Open
knpwrs opened this issue May 23, 2024 · 2 comments
Open

Support :noautocmd write #89

knpwrs opened this issue May 23, 2024 · 2 comments

Comments

@knpwrs
Copy link

knpwrs commented May 23, 2024

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:

  1. Support a :noautocmd mode, so we can disable autocommands on auto-saves (e.g., disable formatting when this plugin saves)
  2. Support specifying the write commands and default to the wall and write commands that are already here.
@knpwrs
Copy link
Author

knpwrs commented May 23, 2024

It looks like this is supported by this fork: https://github.com/okuuva/auto-save.nvim

@primeapple
Copy link

Good find! It indeed it supported by the fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants