From 4e0f98310234a1eb808aea071157afe232bf24c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 11 Jun 2024 11:51:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=81=20files(nvim):=20php=20extra=20is?= =?UTF-8?q?=20now=20an=20extended=20from=20the=20php=20extra=20of=20lazyvi?= =?UTF-8?q?m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/extras/lang/web/php-extended.lua | 32 +++++++++++ .../nvim/lua/plugins/extras/lang/web/php.lua | 57 ------------------- 2 files changed, 32 insertions(+), 57 deletions(-) create mode 100644 .config/nvim/lua/plugins/extras/lang/web/php-extended.lua delete mode 100644 .config/nvim/lua/plugins/extras/lang/web/php.lua diff --git a/.config/nvim/lua/plugins/extras/lang/web/php-extended.lua b/.config/nvim/lua/plugins/extras/lang/web/php-extended.lua new file mode 100644 index 00000000..a53bd065 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/lang/web/php-extended.lua @@ -0,0 +1,32 @@ +return { + { import = "lazyvim.plugins.extras.lang.php" }, + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { + "phpdoc", + }, + }, + }, + { + "nvim-neotest/neotest", + optional = true, + dependencies = { + "olimorris/neotest-phpunit", + }, + opts = { + adapters = { + ["neotest-phpunit"] = {}, + }, + }, + }, + { + "luckasRanarison/nvim-devdocs", + optional = true, + opts = { + ensure_installed = { + "php", + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/extras/lang/web/php.lua b/.config/nvim/lua/plugins/extras/lang/web/php.lua deleted file mode 100644 index 0d25d594..00000000 --- a/.config/nvim/lua/plugins/extras/lang/web/php.lua +++ /dev/null @@ -1,57 +0,0 @@ -return { - { import = "lazyvim.plugins.extras.lang.php" }, - { - "nvim-treesitter/nvim-treesitter", - opts = { - ensure_installed = { - "phpdoc", - }, - }, - }, - { - "williamboman/mason.nvim", - opts = { - ensure_installed = { - "php-cs-fixer", - "phpcs", - }, - }, - }, - { - "mfussenegger/nvim-lint", - opts = function(_, opts) - opts.linters_by_ft.php = opts.linters_by_ft.php or {} - table.insert(opts.linters_by_ft.php, "phpcs") - return opts - end, - }, - { - "nvim-neotest/neotest", - optional = true, - dependencies = { - "olimorris/neotest-phpunit", - }, - opts = { - adapters = { - ["neotest-phpunit"] = {}, - }, - }, - }, - { - "stevearc/conform.nvim", - opts = function(_, opts) - opts.formatters_by_ft.php = opts.formatters_by_ft.php or {} - table.insert(opts.formatters_by_ft.php, "php_cs_fixer") - return opts - end, - }, - { - "luckasRanarison/nvim-devdocs", - optional = true, - opts = { - ensure_installed = { - "php", - }, - }, - }, -}