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

null-ls integration with undo functionality #26

Closed
piersolenski opened this issue May 20, 2022 · 1 comment
Closed

null-ls integration with undo functionality #26

piersolenski opened this issue May 20, 2022 · 1 comment

Comments

@piersolenski
Copy link

null-ls has a way to format on save https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Formatting-on-save#code. However, when you try to undo the last change, it's undoing to the last formatted rather than the actual code content changing. This means you need to undo twice, and it can be a bit visually jumpy whilst it's trying to format you go through the changes. Neoformat used to handle this like so, https://github.com/sbdchd/neoformat#managing-undo-history - is there a way to do this with AutoSave? Thanks!

@piersolenski
Copy link
Author

Solved here jose-elias-alvarez/null-ls.nvim#879

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

1 participant