format with stylua

This commit is contained in:
2024-06-06 23:56:11 +02:00
parent d57eca961d
commit ae5b5fd06b
57 changed files with 994 additions and 989 deletions

View File

@ -1,39 +1,39 @@
return {
'nvim-neotest/neotest',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
'antoinemadec/FixCursorHold.nvim',
'nvim-neotest/neotest-python'
},
config = function()
local pythonVenv = require('utils.python_venv')
require('neotest').setup({
adapters = {
require('neotest-python')({
dap = {
justMyCode = false
},
runner = 'pytest',
python = pythonVenv.getPythonEnv
})
}
})
end,
keys = {
{
'<F3>',
function()
require('neotest').run.run()
end,
desc = 'Run nearest test'
},
{
'<S-F3>',
function()
require('neotest').run.run({ strategy = 'dap' })
end,
desc = 'Run nearest test'
}
}
}
return {
'nvim-neotest/neotest',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
'antoinemadec/FixCursorHold.nvim',
'nvim-neotest/neotest-python',
},
config = function()
local pythonVenv = require('utils.python_venv')
require('neotest').setup({
adapters = {
require('neotest-python')({
dap = {
justMyCode = false,
},
runner = 'pytest',
python = pythonVenv.getPythonEnv,
}),
},
})
end,
keys = {
{
'<F3>',
function()
require('neotest').run.run()
end,
desc = 'Run nearest test',
},
{
'<S-F3>',
function()
require('neotest').run.run({ strategy = 'dap' })
end,
desc = 'Run nearest test',
},
},
}