-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Labels
new toolSupport for new linters, fixers, etc.Support for new linters, fixers, etc.
Description
Name: PerlNavigator
URL: https://github.com/bscan/PerlNavigator/
To my knowledge there are two perl language servers around. One already has a new-tool issue in #3496. This issue covers the other one, PerlNavigator.
Unfortunately PerlNavigator currently has buggy behaviour ignoring capabilities in its initialize method and can thus not easily be used with ale. Unless one applies the patch posted in that bug report, of course.
As for configuring it with ale, this appears to be working: (project_root function is lazily reused from #3496):
call ale#linter#Define('perl', {
\ 'name': 'perlnavigator',
\ 'lsp': 'stdio',
\ 'executable': s:perlnavigator_executable,
\ 'command': '%e --stdio',
\ 'lsp_config': {
\ 'perlnavigator': {
\ 'perlPath': 'perl',
\ 'enableWarnings': 1,
\ 'perltidyProfile': '',
\ 'perlcriticProfile': '',
\ 'perlcriticEnabled': 1,
\ },
\ },
\ 'project_root': function('PLLSGetProjectRoot'),
\ })Metadata
Metadata
Assignees
Labels
new toolSupport for new linters, fixers, etc.Support for new linters, fixers, etc.