Replies: 1 comment
-
|
Hey 👋 Completion isn't rustaceanvim's responsibility. In the meantime, if you don't want to wait, you can use your workaround or propose adding the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Feature description
Hi 👋,
I’d like to ask whether it would make sense to add a simple configuration option in
rustaceanvimto control whetherrust-analyzerprefers insert or replace behavior for completion items.Background
On
Neovim 0.11.5, rust-analyzer completion defaults to replace instead of insert.After digging through
Neovimandrustaceanvimsource code (nvim capabilities, nvim completion, rustaceanvim server capabilities, rustaceanvim config), issues (rust analyzer issue, rust-analyzer discussion), and PR , I finally found a way to switch this simple behavior is via a relatively verbose LSP capability override, like this:In short: manually injecting
insertReplaceSupportinto the server capabilities just to control this one behavior.Neovim upstream status
This workaround is temporary by nature. In
Neovim’s latest development version:After
Neovim enable insertReplaceSupport, make_client_capabilities() already includesinsertReplaceSupport = trueby default.So on future
Neovimreleases, this configuration becomes unnecessary.Question / proposal
Would it make sense to:
Add a simple
rustaceanvimoption (e.g. something likeserver.insert_replace = true/false) that internally adjustsinsertReplaceSupport, and later deprecate/remove it onceNeovimstable includes the upstream fix?or
Do nothing on
rustaceanvim’s side and simply wait forNeovimto release the fix?Personally, I feel a small, explicit option could greatly improve
UXfor users on current stableNeovim, without requiring them to understandLSPcapability internals, and this has been annoying me for months. — but I’m very interested in the maintainer’s perspective on whether this fits the project’s scope.Thanks a lot for maintaining
rustaceanvim🙏Beta Was this translation helpful? Give feedback.
All reactions