Add vim-test plugin

This commit is contained in:
salomaestro
2025-02-19 16:02:42 +01:00
parent 3bb580b542
commit 5a9c788b08
2 changed files with 21 additions and 0 deletions

View File

@@ -22,3 +22,13 @@ sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", num
sign("DapBreakpointCondition", { text = "", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
sign("DapLogPoint", { text = "", texthl = "DapLogPoint", linehl = "", numhl = ""})
sign('DapStopped', { text='', texthl='DapStopped', linehl='DapStopped', numhl= 'DapStopped' })
vim.api.nvim_create_autocmd("QuickFixCmdPost", {
callback = function()
local qf = vim.fn.getqflist({ size = 0 })
if qf.size > 0 then
vim.cmd("copen")
end
end,
pattern = "*",
})

View File

@@ -15,6 +15,17 @@ return {
end,
},
{
"vim-test/vim-test",
lazy = false,
config = function()
vim.g["test#use_quickfix"] = 1
vim.g["test#strategy"] = "neovim_sticky"
vim.g["test#python#runner"] = "pytest"
vim.g["test#python#pytest#executable"] = "uv run pytest"
end,
},
{
"mfussenegger/nvim-dap",
lazy = true,