Skip to content
targetdisk edited this page Jun 14, 2023 · 3 revisions

The PLS Perl module implements the Language Server Protocol for Perl 5 code. It will probably work with Perl 7 code, as well (untested).

Installing server

When I installed the PIL module using cpan I got issues until I installed the PPI Perl parsing module through Cpan first:

cpan PPI

Then you can install PIL:

cpan PIL

Once the pls is installed in your PATH, you can register it in your .vimrc

Registering in .vimrc

if executable('pls')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'pls',
        \ 'cmd': {server_info->['pls']},
        \ 'allowlist': ['perl'],
        \ })
endif