mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-01 13:40:24 +08:00
Add support for PerlNavigator (#5028)
* Add support for PerlNavigator * fixup! Add support for PerlNavigator * fixup! fixup! Add support for PerlNavigator * fixup! fixup! fixup! Add support for PerlNavigator --------- Co-authored-by: cos <cos>
This commit is contained in:
+48
-1
@@ -70,7 +70,6 @@ g:ale_perl_languageserver_config
|
||||
For all available options and explanations, visit
|
||||
https://metacpan.org/pod/Perl::LanguageServer#Extension-Settings
|
||||
|
||||
|
||||
===============================================================================
|
||||
perlcritic *ale-perl-perlcritic*
|
||||
|
||||
@@ -127,6 +126,54 @@ g:ale_perl_perlcritic_showrules
|
||||
Defaults to off to reduce length of message.
|
||||
|
||||
|
||||
|
||||
===============================================================================
|
||||
perlnavigator *ale-perl-perlnavigator*
|
||||
|
||||
*ale-options.perl_perlnavigator_executable*
|
||||
*g:ale_perl_perlnavigator_executable*
|
||||
*b:ale_perl_perlnavigator_executable*
|
||||
perl_perlnavigator_executable
|
||||
g:ale_perl_perlnavigator_executable
|
||||
Type: |String|
|
||||
Default: `'perlnavigator'`
|
||||
|
||||
This variable can be changed to modify the perlnavigator executable used for
|
||||
linting perl.
|
||||
|
||||
*ale-options.perl_perlnavigator_config*
|
||||
*g:ale_perl_perlnavigator_config*
|
||||
*b:ale_perl_perlnavigator_config*
|
||||
perl_perlnavigator_config
|
||||
g:ale_perl_perlnavigator_config
|
||||
Type: |Dictionary|
|
||||
Default: `'{}'`
|
||||
|
||||
This variable can be changed to customize the lsp_config (sent as a
|
||||
workspace/didChangeConfiguration command) for perlnavigator.
|
||||
For example: >
|
||||
|
||||
let g:ale_perl_perlnavigator_config = {
|
||||
\ 'perlnavigator': {
|
||||
\ 'enableWarnings': 1,
|
||||
\ 'includePaths': [ $HOME . '/MyPerlStuff/lib', '/tmp/tmp.7qSgUo34e' ],
|
||||
\ 'perlEnvAdd': 1,
|
||||
\ 'perlEnv': {
|
||||
\ 'PERL_DL_NONLAZY': 1,
|
||||
\ },
|
||||
\ 'perlPath': substitute(g:ale_perl_perl_executable, '/perl$', '', ''),
|
||||
\ 'perlcriticEnabled': 1,
|
||||
\ 'perlcriticProfile': '$workspaceFolder/.perlcriticrc',
|
||||
\ 'perltidyProfile': '$workspaceFolder/.perltidyrc',
|
||||
\ 'perlcriticSeverity': 2,
|
||||
\ },
|
||||
\ }
|
||||
\}
|
||||
|
||||
<
|
||||
For all available options and explanations, visit
|
||||
https://github.com/bscan/PerlNavigator?tab=readme-ov-file
|
||||
|
||||
===============================================================================
|
||||
perltidy *ale-perl-perltidy*
|
||||
|
||||
|
||||
@@ -482,6 +482,7 @@ Notes:
|
||||
* `languageserver`
|
||||
* `perl -c`
|
||||
* `perl-critic`
|
||||
* `perlnavigator`
|
||||
* `perltidy`
|
||||
* Perl6
|
||||
* `perl6 -c`
|
||||
|
||||
@@ -3807,6 +3807,7 @@ documented in additional help files.
|
||||
perl..................................|ale-perl-perl|
|
||||
perl language server..................|ale-perl-languageserver|
|
||||
perlcritic............................|ale-perl-perlcritic|
|
||||
perlnavigator.........................|ale-perl-perlnavigator|
|
||||
perltidy..............................|ale-perl-perltidy|
|
||||
perl6...................................|ale-perl6-options|
|
||||
perl6.................................|ale-perl6-perl6|
|
||||
|
||||
Reference in New Issue
Block a user