From b0807c67e416fbd37f70ee2565f4462305d181fa Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 4 Oct 2022 08:44:32 +0200 Subject: feat: small changes and improvementes --- after/plugin/neotest.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'after/plugin/neotest.lua') diff --git a/after/plugin/neotest.lua b/after/plugin/neotest.lua index c43e74c..c1b55c4 100644 --- a/after/plugin/neotest.lua +++ b/after/plugin/neotest.lua @@ -3,8 +3,6 @@ if not ok then return end -local composer = require("composer") - neotest.setup({ adapters = { require("neotest-go"), @@ -13,20 +11,7 @@ neotest.setup({ require("neotest-vim-test")({ ignore_file_types = { "go", "lua", "rust", "php" }, }), - require("neotest-phpunit")({ - phpunit_cmd = function() - if composer.query({ "require-dev", "laravel/sail" }) ~= nil then - return { "vendor/bin/sail", "phpunit" } - end - return "vendor/bin/phpunit" - end, - path_mapping = function () - if composer.query({"require-dev", "laravel/sali"}) ~= nil then - return { ["/app"] = vim.fn.getcwd() } - end - return { ["/var/www/html"] = vim.fn.getcwd() } - end - }), + require("laravel.neotest"), }, }) -- cgit v1.2.3