Browse Source

Start fixing neotest phpunit for docker

master
parent
commit
b8625e34cc
2 changed files with 35 additions and 26 deletions
  1. +7
    -3
      .config/nvim/lua/config/neotest.lua
  2. +28
    -23
      .config/nvim/lua/packer-plugins.lua

+ 7
- 3
.config/nvim/lua/config/neotest.lua View File

@ -1,12 +1,16 @@
require("neotest").setup({ require("neotest").setup({
adapters = { adapters = {
require("neotest-phpunit"),
require("neotest-phpunit")({
root_files = { "phpunit.xml", "composer.json" },
phpunit_cmd = { "docker-compose exec fpm ./vendor/bin/phpunit" },
filter_dirs = { "vendor" }
}),
}, },
}) })
require("neotest-phpunit")({ require("neotest-phpunit")({
root_files = { "phpunit.xml", "composer.json" }, root_files = { "phpunit.xml", "composer.json" },
-- phpunit_cmd = { "docker-compose exec fpm ./vendor/bin/phpunit" },
phpunit_cmd = { "vendor/bin/phpunit" },
phpunit_cmd = { "docker-compose", "exec", "fpm", "./vendor/bin/phpunit" },
-- phpunit_cmd = { "vendor/bin/phpunit" },
filter_dirs = { "vendor" } filter_dirs = { "vendor" }
}) })

+ 28
- 23
.config/nvim/lua/packer-plugins.lua View File

@ -110,13 +110,18 @@ return require('packer').startup(function()
end end
} }
-- use {
-- 'glepnir/dashboard-nvim',
-- event = 'VimEnter',
-- config = function()
-- require('config.dashboard')
-- end,
-- requires = {'nvim-tree/nvim-web-devicons'}
-- }
use { use {
'glepnir/dashboard-nvim',
event = 'VimEnter',
config = function()
require('config.dashboard')
end,
requires = {'nvim-tree/nvim-web-devicons'}
"eoh-bse/minintro.nvim",
config = function() require("minintro").setup() end
} }
use { use {
@ -126,7 +131,7 @@ return require('packer').startup(function()
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
'antoinemadec/FixCursorHold.nvim', 'antoinemadec/FixCursorHold.nvim',
-- Adapters -- Adapters
'olimorris/neotest-phpunit',
'tovijaeschke/neotest-phpunit',
'nvim-neotest/neotest-go', 'nvim-neotest/neotest-go',
}, },
config = function() config = function()
@ -158,16 +163,16 @@ return require('packer').startup(function()
} }
-- CMD and search at the top -- CMD and search at the top
use {
'folke/noice.nvim',
requires = {
'MunifTanjim/nui.nvim',
'rcarriga/nvim-notify',
},
config = function ()
require('config.noice')
end
}
-- use {
-- 'folke/noice.nvim',
-- requires = {
-- 'MunifTanjim/nui.nvim',
-- 'rcarriga/nvim-notify',
-- },
-- config = function ()
-- require('config.noice')
-- end
-- }
-- DB manager -- DB manager
use { use {
@ -198,12 +203,12 @@ return require('packer').startup(function()
-- Programming language specifics -- Programming language specifics
use { 'dart-lang/dart-vim-plugin' } use { 'dart-lang/dart-vim-plugin' }
use { 'ray-x/guihua.lua' } use { 'ray-x/guihua.lua' }
use {
'ray-x/go.nvim',
config = function()
require('config.go')
end
}
-- use {
-- 'ray-x/go.nvim',
-- config = function()
-- require('config.go')
-- end
-- }
-- Colorschemes -- Colorschemes
use { use {


Loading…
Cancel
Save