PLS - Perl Language Server
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
This application does not take any command line options. The following settings may be configured using your text editor:
You can use $ROOT_PATH to stand in for your project's root directory, to allow for configuration to work the same for multiple directories of the same project. This is useful if you use SVN and check out each branch to a different directory.
Configure this option if pls is not available in your path.
.perltidyrc
Defaults to ~/.perltidyrc if not configured.
~/.perltidyrc
.perlcriticrc
Defaults to ~/.perlcriticrc if not configured.
~/.perlcriticrc
You may configure a .plsignore file in your project's root directory, with a list of Perl glob patterns which you do not want pls to index.
By default, pls will index everything that looks like a Perl file, with the exception of .t files.
.t
pls has not been tested with editors other than Visual Studio Code and Neovim.
Install the fractalboy.pls extension to Visual Studio Code in order to use this language server.
Copyright 2021 Marc Reisner
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install PLS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PLS
CPAN shell
perl -MCPAN -e shell install PLS
For more information on module installation, please visit the detailed CPAN module installation guide.