How to not preselect on LSP rename? #1044
Replies: 3 comments 2 replies
-
👀 curious as well. EDIT: I am using https://github.com/stevearc/dressing.nvim to have the rename edit box in the code itself. |
Beta Was this translation helpful? Give feedback.
-
I just want to describe this problem a bit more, so we're on the same page. When I trigger the LSP rename popup (which is in a Neovim command input box), the input box is prepopulated with the name of the symbol I want to rename. Then maybe I backspace a couple of letters to start the rename, but then Blink renders its dropdown giving suggestions of Neovim commands. I think that could be okay, apart from the fact that the first item is preselected, so that when I press ENTER to accept my rename, the suggested Neovim command is entered instead. Of course it's not actually a big issue, because I can just remember to press ESCAPE before ENTER. Or indeed I can press ESCAPE twice and that causes my rename to be the chosen rename! |
Beta Was this translation helpful? Give feedback.
-
I think that should be disabled by default. It's rarely useful and gets mostly in the way when ENTER selects a suggestion instead of what I typed. There's also some discussion here: https://old.reddit.com/r/neovim/comments/1i4w70l/disable_blinkcmp_in_certain_scenarios/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I couldn't find it in the documentation to turn off preselect when LSP renaming.
Beta Was this translation helpful? Give feedback.
All reactions