Comments (7)
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.
from inc-rename.nvim.
Which language server are you using? (output of :LspInfo
?)
from inc-rename.nvim.
I was using Pyright and jedi-language-server.
from inc-rename.nvim.
Hy guys, any date to fix that issue ?? I had the same problem here using the "js/ts language server" at lazyvim
from inc-rename.nvim.
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.
from inc-rename.nvim.
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.
from inc-rename.nvim.
I mentioned this in #53 too.
Something I noticed and could have the same root problem:
1. Same project, same file
2. line 92 and try renaming ParseContext.
3. 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.
from inc-rename.nvim.
Related Issues (20)
- [bug] Ctrl+F to enter command line window breaks inc-rename when input_buffer_type = "dressing" HOT 1
- How to show current variable name in the INC box before changing HOT 2
- Rust - Inlined format args not renamed HOT 1
- increname command prevent using `<up>` to get previous command HOT 16
- Filling in the command line didn't work, but I fixed it HOT 2
- noice.nvim support appears broken HOT 1
- Amazing plugin HOT 1
- Incompatible with `custom-elements-languageserver` ("Nothing to rename") HOT 13
- Bug: incorrect highlights with rust-analyzer and multiple references on single line HOT 1
- renamer.nvim: VSCode-like Input Support HOT 2
- Partially Doesn't Work HOT 1
- Question about multiple buffers renaming HOT 6
- Error on rename HOT 24
- Cursor dissapears in Neovim 0.10 HOT 3
- On rename, when the entire name is deleted popup dissapears with `noice.nvim` HOT 1
- How to change startup mode from insert to normal? HOT 4
- Typescript renaming of properties doesn't work across files HOT 1
- Safe all affected files automatically HOT 1
- Execute `post_hook` even when canceled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inc-rename.nvim.