-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Describe the bug
Attempting to rename text with no LSP attached will fail silently after displaying prompt for new name.
To reproduce
Steps to reproduce the behavior:
- Open file with no LSP attached.
- Run
lua require('renamer').rename()
on any word. - Notice that nothing happens just like operation would be successful.
Expected behavior
A discreet message should be displayed and no input box should be opened if there is nothing to rename.
Environment
- Renamer: v3.0.2
- Neovim: v0.5.1
- OS: Windows, version: 10
Screenshots
Additional context
When LSP is attached the prompt will be shown also for invalid elements, but at least there is a warning displayed afterward.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working