-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Accepting company completion causes LSP document to get desynced #42
Comments
This was fixed in a451370 (and reported in #39).
This is tricky. I believe this is because I could have evil-multiedit abort the session when the file is saved -- it's not optimal UX, but it'd at least avoid this weirdness. Give it a try: (with-eval-after-load 'evil-multiedit
(add-hook 'before-save-hook #'evil-multiedit-abort)) |
Accepting a completion with lsp-mode doesn't seem to save the buffer for me (I do have simplescreenrecorder-2021-10-23_20.59.34.mp4 |
Is evil-multiedit up-to-date? I see you're using Doom, where I've pinned both ;; add to ~/.doom.d/packages.el
(unpin! iedit evil-multiedit lsp-mode) Then run |
Oops yeah I was going to mention that but I forgot about it, sorry, I hadn't updated in a couple of days (and I assumed no sneaky buffer saving had snuck in in the mean time). I unpinned those packages, updated to the latest develop branch, and cleaned my |
Oh, my bad, I forgot about ;; add to ~/.doom.d/packages.el
-(unpin! iedit evil-multiedit lsp-mode)
+(unpin! iedit evil-multiedit lsp-mode evil) |
Ah yeah I thought about that, but I was thinking "Surely evil-multiedit doesn't require some bleeding edge new evil feature, right?". 😅 With these changes (and without having to add the |
This has been an issue for as long as I can remember, but I always forget to create a ticket for it. Not sure if this is the same issue as #39, but it also happens in Doom with the pinned iedit version.
When accepting a company completion while multiple evil-multiedit regions are active, the prefix that was used to trigger the company completion doesn't seem to get committed to the other regions while the completed part does. See below for a demonstration where lsp-mode's capf backend completes
bar
for me after I typed ab
. When the document automatically reformats on save throughlsp-format-buffer
, only thear
part remains.simplescreenrecorder-2021-06-13_13.48.21.mp4
On a side note, is pasting on a visual selection being broken in evil-multiedit (with Doom) also a known issue? When I use
viw p
to replace the selected word, only the actual word I'm editing will contain the pasted text. The other regions will be empty.The text was updated successfully, but these errors were encountered: