language/php: add initial support for intelephense php lsp

This commit is contained in:
Victor R 2025-03-10 16:00:31 +00:00
parent 28b48565f0
commit 9af2d48736
No known key found for this signature in database

View file

@ -64,6 +64,26 @@
}
'';
};
intelephense = {
package = pkgs.intelephense;
lspConfig = ''
lspconfig.intelephense.setup{
capabilities = capabilities,
on_attach = default_on_attach,
cmd = ${
if isList cfg.lsp.package
then expToLua cfg.lsp.package
else ''
{
"${getExe cfg.lsp.package}",
"--stdio"
},
''
}
}
'';
};
};
in {
options.vim.languages.php = {