diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-10-04 08:44:32 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-10-04 08:44:32 +0200 |
| commit | b0807c67e416fbd37f70ee2565f4462305d181fa (patch) | |
| tree | 5f972cc1b2d56bfb39a44df212827ab827cb7006 /after/plugin/neotest.lua | |
| parent | bc7ded2a1cebcd4bbf5e549b107c7e11a5f32535 (diff) | |
| download | nvim-conf-b0807c67e416fbd37f70ee2565f4462305d181fa.tar.gz nvim-conf-b0807c67e416fbd37f70ee2565f4462305d181fa.zip | |
feat: small changes and improvementes
Diffstat (limited to 'after/plugin/neotest.lua')
| -rw-r--r-- | after/plugin/neotest.lua | 17 |
1 files changed, 1 insertions, 16 deletions
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"), }, }) |