-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Formatting messes up cursor position #69
Comments
Can you provide an example, try to reproduce it, or provide any helpful info? |
I will update once I am able to reproduce the issue but so far it seems to happen on random occasions. |
if you got something wrong. I'd suggest you try a min config avoid some things conflict. |
Config is posted above. It is already very minimal. |
I mean just include guard . something like this not a Config vim.opt.rtp:append(path/to/guard)
local ft = require('guard.filetype')
ft:('xxx'):fmt |
@DrunkenToast also are you on latest version of guard, pretty sure this was fixed in #48 |
I regularly update plugins, it did happen again recently in a vue3 project. But again, I don't really understand what causes it. |
The issue has not occurred anymore since the exit code fix. The only thing that annoys me currently is that undoing makes my cursor jump to the bottom and with prettier it fails very very often even if there is no reason to (which I assume means it sends the wrong buffer as input), but these are separate issues so I'll consider this closed for now. |
Sometimes on format the cursor will move to the top of the file.
I have not been able to properly reproduce this.
Used config:
Possibly related: #68
The text was updated successfully, but these errors were encountered: