filipdutescu / renamer.nvim

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

Popup appear but nothing happens [Bug] #127

Closed YuCao16 closed 2 years ago

YuCao16 commented 2 years ago

Describe the bug

As the title says, I use command lua require"renamer".rename() and the popup window can appear, then I type in the name I want to rename and press enter, but nothing happens, none of the names have changed.

To reproduce

Steps to reproduce the behavior:

Since no one report this issue, so I think it's because my own config problem. How can I debug it?

Expected behavior

A clear and concise description of what you expected to happen.

Environment

Screenshots

截屏2022-08-02 11 27 01

Additional context

Add any other context about the problem here.

filipdutescu commented 2 years ago

Hey, thanks for submitting this bug report! I will need a couple more details however, such as:

  1. Have you called renamer.setup() before calling renamer.rename()
  2. What LSP are you using and is it up and running before calling rename?
  3. Is there no error message after rename is called?
YuCao16 commented 2 years ago

Hi @filipdutescu , Sorry I don't know this plugin require LSP, I thought the plugin search for keywords in the file and then replace them. So it makes sense renamer do nothing since I'm using coc.nvim as LSP client.

filipdutescu commented 2 years ago

No need to apologise, I am glad you figured it out! Does this mean you fixed the issue?

YuCao16 commented 2 years ago

Yeah, I think so, let me close this issue.

filipdutescu commented 2 years ago

Awesome! Feel free to reach out with any other bug/feature request!