igoryonya has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I've installed https://metacpan.org/dist/PLS module.
Configured it in NVIM with https://github.com/neovim/nvim-lspconfig plugin.

Auto completions work. It even shows documentation excerpts, when cursor is over some keyword or library module, but out of all issues, my biggest problem is that Language Server's renaming doesn't work.
When I try to rename some function or a variable, it gives me an error:

'[LSP] Rename, no matching language servers with rename capability.'

Does anybody know, if perl Language servers don't support such functionality or did I configure something wrong?

Replies are listed 'Best First'.
Re: PLS (Perl Language Server) renaming support in NVIM
by ablanke (Monsignor) on May 23, 2025 at 07:04 UTC
    Hi igoryonya,

    i would refer to the documentation. PLS

    there is no mentioning of renaming/refactoring.

    The Perl Language Server implements a subset of the Language Server Protocol for the Perl language. Features currently implemented are:

    • Go to definition (for packages, subroutines, and variables)
    • Listing all symbols in a document
    • Hovering to show documentation
    • Signature help (showing parameters for a function as you type)
    • Formatting
    • Range Formatting
    • Auto-completion
    • Syntax checking
    • Linting (using perlcritic)
    • Sorting imports

    Perl::LanguageServer also does not mention support of this feature.

    you could look at Damian Conway's vim setup.

    https://github.com/thoughtstream/Damian-Conway-s-Vim-Setup

    https://youtu.be/fVnmYzJfy5s?t=1626

    Code::ART