mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-12 00:15:30 +00:00
language/php: add initial support for intelephense php lsp
This commit is contained in:
parent
28b48565f0
commit
9af2d48736
1 changed files with 20 additions and 0 deletions
|
|
@ -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 {
|
in {
|
||||||
options.vim.languages.php = {
|
options.vim.languages.php = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue