Skip to content

[Bug] Rename prompt will be displayed even if no LSP is attached #96

@EtiamNullam

Description

@EtiamNullam

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:

  1. Open file with no LSP attached.
  2. Run lua require('renamer').rename() on any word.
  3. 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

image

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 working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions