-
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
Bug: Changing the current word under the cursor broken #45
Comments
Thanks for reporting, I'll definitely look into this!
It uses Nvim's builtin LSP functions (vim.lsp.buf.rename and another to get the locations of the variables), so it depends on the concrete LSP server for the current buffer. Although probably every LSP server constructs an AST of some kind. |
Which language server are you using? (output of |
I was using Pyright and jedi-language-server. |
Hy guys, any date to fix that issue ?? I had the same problem here using the "js/ts language server" at lazyvim |
I've also had this issue constantly happening inside of TS while writing vuejs code. It somehow just deletes more than it should. Not sure why. |
@pmartinsdev Thanks for also reporting this issue. Can you please provide me with example code where this is happening? It's hard for me to find out what the problem is without that. |
I mentioned this in #53 too.
You should be able to reproduce this with the second example. |
Did anyone still observe this issue? If not, this issue can be closed |
I haven't used the pluggin in a while. I can try it out tomorrow and report if the issue persists. However I am not using the same machine as the one I reported the issue in. |
I get this issue too!!! Started recently. Might have been from when i built neovim from source to update it recently.
|
Hey, when I use the snippet provided in the config to rename a variable it works, as long as I don't completely remove the previous variable. Hopefully the video explains it better.
Also an aside question, does this use the AST for renaming?
issue.mp4
This is how my config looks like right now. I'm using Lazy as my plugin manager
This is the neovim version I'm running
The text was updated successfully, but these errors were encountered: