-
Notifications
You must be signed in to change notification settings - Fork 58
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
Autosave.nvim makes my undotree dirty #10
Comments
Hey! As weird as this may sound, this is expected behavior. As you said, leaving only the There is actually a warning about it in vim's doc:
I too get this issue, but the issue is not the plug-in itself. Like you could just write a very simple one-line autocommand to save on Sandly this is so random that it's hard to reproduce.... |
@pocco81, the current config for your own plugin is exactly the same as the docs? The weird thing is, I wouldn't notice nothing wrong in the past few days, then suddenly things stop working the way it should be =\ Thank you for your fast response here, btw |
As I said, this is very very random. But regardless of its nature it should only cause errors the buffer is saved while some other plugin needs to do some stuff with the unmodified buffer. This is actually the reason for the I actually remember having an problem with an autocompletion plugin (don't remember if it was that) that needed to read the unsaved buffer, so varying the delay worked. Feel free to play around with both the If it helps, here are some issues regarding undoing stuff when using an auto save type-of plugin: |
autosave increase debounce_delay - pocco81/auto-save.nvim#10 options rm undofile bcuz that sucks
Hello, there. Awesome plugin!
The issue I'm bringing here is that somehow whenever I type
u
to undo on Neovim (specs on below image) the expected previous edit does not appear. Instead it blinks the [+] on the low bar like a new edition was being made and then when I check my undotree it is full of empty edition entries, check it out:This is my nvim configuration:
This is the undotree:
Pointing it to one of edits entry (please notice, timestamps would change due to time I'm taking shots and editing this issue as well)
Immediately previous edit entry:
As you see this is what I called empty edit entries.
Now, this is my basic conf to reproduce such error (init.vim):
Please notice, I tested with this plugin enabled and disabled and got not issues at all by running
u
with this plugin disabled. This would let me conclude the issue is with autosave.nvim. So the basic outcome of this issue is that it takes a lot ofu
tapping to get me the real previous editing.Thank you!
EDIT: I don't know if this helps you but, leaving just "InsertLeave" the entry
events
seems to "resolve" the issue, albeit it will not save changes made on Normal Mode.The text was updated successfully, but these errors were encountered: