perlpls
https://github.com/FractalBoy/perl-language-server https://metacpan.org/pod/PLS
PLS
, another language server for Perl.
To use the language server, ensure that you have PLS installed and that it is in your path
Setup
require'lspconfig'.perlpls.setup{}
Default values
cmd = { "pls" }
filetypes = { "perl" }
root_dir = function(filename)
return util.root_pattern '.git'(filename) or util.path.dirname(filename)
end,
settings = {
perl = {
perlcritic = {
enabled = false
}
}
}
Available settings
perl.cwd
- Type:
string
- Default:
"."
Current working directory to use
perl.inc
- Type:
array
- Default:
{}
Paths to add to \@INC.
perl.perlcritic.enabled
- Type:
boolean
- Default:
true
Enable perlcritic
perl.perlcritic.perlcriticrc
- Type:
string
- Default:
"~/.perlcriticrc"
Path to .perlcriticrc
perl.perltidyrc
- Type:
string
- Default:
"~/.perltidyrc"
Path to .perltidyrc
perl.pls
- Type:
string
- Default:
"pls"
Path to the pls executable script
perl.sortImports.args
- Type:
array
- Default:
{}
- Array items:
Arguments passed in. Each argument is a separate item in the array.
perl.syntax.enabled
- Type:
boolean
- Default:
true
Enable syntax checking
perl.syntax.perl
- Type:
string
- Default:
""
Path to the perl binary to use for syntax checking