Open DMunkei opened 9 months ago
Thanks for reporting, I'll definitely look into this!
Also an aside question, does this use the AST for renaming?
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 :LspInfo
?)
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.
Hy guys, any date to fix that issue ?? I had the same problem here using the "js/ts language server" at lazyvim
@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.
Something I noticed and could have the same root problem:
- Same project, same file
- line 92 and try renaming ParseContext.
- Add a couple of characters and have a look at the preview. With every new character added to the rename, the previously added characters should appear again with every new character you add. Hard to describe but the number of characters shown in the preview is the factorial of the number of characters added to the rename. (not sure if you can reproduce it tho because that behavior is a bit less predictable)
You should be able to reproduce this with the second example.
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?
https://github.com/smjonas/inc-rename.nvim/assets/17084284/3d2250b3-f97e-448e-ab75-a9dc403ed8be
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