Cheatsheets and debuggin
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
require('helpers').edit_cf('pt', '/lua/plugins/test.lua')
|
||||
|
||||
return {
|
||||
'nvim-neotest/neotest',
|
||||
dependencies = {
|
||||
'V13Axel/neotest-pest',
|
||||
},
|
||||
config = function()
|
||||
require('neotest').setup {
|
||||
adapters = {
|
||||
require 'neotest-pest' {
|
||||
sail_enabled = function()
|
||||
return false
|
||||
end,
|
||||
parallel = 8,
|
||||
pest_cmd = function()
|
||||
local cmd = vim.g.neotest_pest_cmd or { 'vendor/bin/pest' }
|
||||
if vim.g.neotest_debug then
|
||||
cmd = { 'sh', '-c', 'XDEBUG_MODE=debug exec ' .. table.concat(cmd, ' ') .. ' "$@"' }
|
||||
end
|
||||
return cmd
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user