diff --git a/lua/plugins/neotest.lua b/lua/plugins/neotest.lua new file mode 100644 index 0000000..a5e86a6 --- /dev/null +++ b/lua/plugins/neotest.lua @@ -0,0 +1,30 @@ +return { + { + "nvim-neotest/neotest", + lazy = false, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + "antoinemadec/FixCursorHold.nvim", + "nvim-neotest/neotest-python", + "marilari88/neotest-vitest", + }, + config = function() + require("neotest").setup({ + adapters = { + require("neotest-python"), + require("neotest-vitest")({ + vitestCommand = "vitest", + }), + }, + icons = { + passed = "🟢", + running = "🟡", + skipped = "🛞", + unknown = "⚪", + failed = "🔴", + }, + }) + end, + }, +}