-
Notifications
You must be signed in to change notification settings - Fork 12
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
textlock umbrella issue #183
Comments
I had an idea for a naive solution and after some really naive tests it seems to be working. So, I'm putting it in here to see if I may be missing something obvious about why my solution won't work. If the whole i.e. request = vim.schedule_wrap(function(method, params, handler, _)
-- the body of the request function is still here
end), |
Great idea! I wonder if it would be enough to only wrap the relevant part of Do you want to open a PR (with your solution)? Preferably also with an example that doesn't work with the current implementation, but works with your solution. |
My first thougt is that it may be messy because:
I don't know the codebase and I'm wokirng under the assumption that after a |
I think you are right. |
Re-opened due to regression. |
Issue
Currently we call
sync_raft
on a request to update the otter buffer and forward requests to up-to-date attached servers.otter.nvim/lua/otter/lsp/init.lua
Line 131 in ca9ce67
but this uses the
set_lines
api, which does not work when textlock is set:otter.nvim/lua/otter/keeper.lua
Line 396 in ca9ce67
This happens for example when a plugin uses the
CompleteChanged
autocommand and an lsp request is sent from within this context (which then reaches otter.nvim as a request).References
https://neovim.io/doc/user/api.html#nvim_buf_set_lines()
https://neovim.io/doc/user/eval.html#textlock
Related
#145
Affected issues
#182, #178
The text was updated successfully, but these errors were encountered: