From 86e9994dd1305c923dced4ac260408c5abb69926 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 6 Jun 2024 13:25:52 +0200 Subject: [PATCH] fix: recommended and mason --- lua/lazyvim/plugins/extras/lang/php.lua | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/php.lua b/lua/lazyvim/plugins/extras/lang/php.lua index 07e8debf..59e7b292 100644 --- a/lua/lazyvim/plugins/extras/lang/php.lua +++ b/lua/lazyvim/plugins/extras/lang/php.lua @@ -1,20 +1,16 @@ return { + recommended = { + ft = "php", + root = { "composer.json", ".git", ".phpactor.json", ".phpactor.yml" }, + }, + { "nvim-treesitter/nvim-treesitter", opts = function(_, opts) - vim.list_extend(opts.ensure_installed, { - "php", - }) - end, - }, - { - "williamboman/mason.nvim", - opts = function(_, opts) - vim.list_extend(opts.ensure_installed, { - "phpactor", - }) + vim.list_extend(opts.ensure_installed, { "php" }) end, }, + { "neovim/nvim-lspconfig", opts = { @@ -23,6 +19,7 @@ return { }, }, }, + { "mfussenegger/nvim-dap", optional = true,