From 295a3749bbe38f7d7370d6c58a98354751798ec9 Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Wed, 14 Jun 2023 04:43:30 -0500 Subject: [PATCH] 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 --- .vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vimrc b/.vimrc index 072201a..6937320 100644 --- a/.vimrc +++ b/.vimrc @@ -60,6 +60,15 @@ if executable('pylsp') \ }) endif +" Perl +if executable('pls') + au User lsp_setup call lsp#register_server({ + \ 'name': 'pls', + \ 'cmd': {server_info->['pls']}, + \ 'allowlist': ['perl'], + \ }) +endif + " Bash if executable('bash-language-server') au User lsp_setup call lsp#register_server({