1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00
dotfiles/nvim/lua/user/plugins/lang/php.lua
Henrik Hautakoski 6f6cb51e16 nvim: php: skip phpactor config
Its configured in its own file in .config/
2024-09-08 13:37:52 +02:00

69 lines
1.5 KiB
Lua

local lspservers = {
phpactor = {},
}
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "php", "php_only", "phpdoc", "blade" }
}
},
{
"windwp/nvim-ts-autotag",
optional = true,
opts = {
filetypes = {
'php',
'blade',
}
}
},
{
"neovim/nvim-lspconfig",
ft = { "php" },
opts = {
servers = lspservers
},
},
{
"nvim-neotest/neotest",
optional = true,
ft = { "php" },
dependencies = {
"olimorris/neotest-phpunit",
'V13Axel/neotest-pest',
},
opts = {
adapters = {
["neotest-phpunit"] = {},
["neotest-pest"] = {},
}
},
},
{
"adalessa/laravel.nvim",
dependencies = {
"tpope/vim-dotenv",
"MunifTanjim/nui.nvim",
"nvimtools/none-ls.nvim",
},
ft = { "php" },
cmd = { "Sail", "Artisan", "Composer", "Npm", "Yarn", "Laravel" },
opts = {
features = {
null_ls = {
enable = true,
},
route_info = {
enable = true,
position = 'right',
middlewares = true,
method = true,
uri = true
},
},
},
config = true,
}
}