Added Perl LSP support with PLS

You'll need to have your Cpan package bin directory in your $PATH and
then you'll need to install the following modules with Cpan or cpanm:
  - PPI: https://metacpan.org/pod/PPI
  - PLS: https://metacpan.org/pod/PLS

See my post to the vim-lsp wiki for more info on how to set it up:
  https://github.com/prabirshrestha/vim-lsp/wiki/Servers-Perl
This commit is contained in:
Andrew Rogers 2023-06-14 04:43:30 -05:00
commit 295a3749bb

9
.vimrc
View file

@ -60,6 +60,15 @@ if executable('pylsp')
\ }) \ })
endif endif
" Perl
if executable('pls')
au User lsp_setup call lsp#register_server({
\ 'name': 'pls',
\ 'cmd': {server_info->['pls']},
\ 'allowlist': ['perl'],
\ })
endif
" Bash " Bash
if executable('bash-language-server') if executable('bash-language-server')
au User lsp_setup call lsp#register_server({ au User lsp_setup call lsp#register_server({