mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-25 17:58:42 +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*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user