filipdutescu / renamer.nvim

VS Code-like renaming UI for Neovim, writen in Lua.
Apache License 2.0
302 stars 11 forks source link

[Bug] If the word to be renamed appears twice in the line, there is a chance popup won't show. #113

Closed filipdutescu closed 2 years ago

filipdutescu commented 2 years ago

Describe the bug

For example, in the line function renamer.rename(opts), if one wants to rename rename, the popup won't show, as it appears once before, in the word renamer.

To reproduce

Steps to reproduce the behavior:

  1. Write the line from the example above
  2. Try to use renamer to rename the rename function name
  3. Popup doesn't show

Expected behavior

The popup should show up without problem.

Environment

Screenshots

Additional context