1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: new php config

This commit is contained in:
Henrik Hautakoski 2024-10-29 13:56:22 +01:00
parent e14fbda089
commit 1acff15791
3 changed files with 37 additions and 6 deletions

View file

@ -1,9 +1,10 @@
local lspservers = {
phpactor = {
inlay_hints = {
enabled = false
}
},
-- phpactor = {
-- inlay_hints = {
-- enabled = false
-- }
-- },
intelephense = {}
}
return {
@ -35,6 +36,21 @@ return {
}
}
},
{
'phpactor/phpactor',
build = 'composer install --no-dev --optimize-autoloader',
ft = 'php',
},
-- Linting
{
'mfussenegger/nvim-lint',
optional = true,
opts = {
linters_by_ft = {
php = { 'phpstan' },
},
},
},
-- LSP
{
"neovim/nvim-lspconfig",