Closed EtiamNullam closed 2 years ago
Attempting to rename text with no LSP attached will fail silently after displaying prompt for new name.
Steps to reproduce the behavior:
lua require('renamer').rename()
A discreet message should be displayed and no input box should be opened if there is nothing to rename.
When LSP is attached the prompt will be shown also for invalid elements, but at least there is a warning displayed afterward.
Thanks for reporting the bug! However, I am not sure how/if I can check if an LSP client is active for the current buffer. Will need to look into it.
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:
lua require('renamer').rename()
on any word.Expected behavior
A discreet message should be displayed and no input box should be opened if there is nothing to rename.
Environment
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.