1
0
Fork 0

nvim: add working check for perlls

This commit is contained in:
tastytea 2022-09-08 06:05:36 +02:00
parent b26ed328a7
commit f4491410b3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 7 additions and 6 deletions

View File

@ -193,12 +193,13 @@ if vim.fn.executable('gopls') > 0 then
})
end
-- there is no good and fast enough way to check for its existence
lspconfig.perlls.setup({
autostart = false,
on_attach = on_attach,
capabilities = capabilities
})
if vim.fn.glob('/usr/lib64/perl5/vendor_perl/5.*/Perl/LanguageServer.pm') ~= ''
then
lspconfig.perlls.setup({
on_attach = on_attach,
capabilities = capabilities
})
end
if vim.fn.executable('qml-lsp') > 0 then
lspconfig.qml_lsp.setup({