Incremental sync using listener_add #1211
Replies: 2 comments 3 replies
-
|
Hi @DanielViberg - it's been ages since I looked at this code, but from memory (and a quick glance) I do everything line-wise: govim/cmd/govim/buffer_events.go Line 119 in 669f601 |
Beta Was this translation helpful? Give feedback.
-
|
Ok, then i believe I understand it correct. Thanks! I've read your conversation with Bram: https://groups.google.com/g/vim_dev/c/L8jg6u47Dro/m/CbH3LNXdAQAJ Do you remember if this is/has been an issue in govim as well? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm looking into implementing incremental sync for a vim9 lsp client https://github.com/yegappan/lsp.
This solution seems to utilize listener_add api. If i read the code correct it seems like you're adding Lines to the a bufChangedChange struct and then build changeset from that and the other attributes.
I assume I'm missing something since I'm wondering how you avoid this issue:
vim/vim#11385
Beta Was this translation helpful? Give feedback.
All reactions