diff --git a/lua/plugins/neotest.lua b/lua/plugins/neotest.lua new file mode 100644 index 0000000..a20e0d8 --- /dev/null +++ b/lua/plugins/neotest.lua @@ -0,0 +1,34 @@ +return { + { + "nvim-neotest/neotest", + dependencies = { + "nvim-neotest/nvim-nio", + "nvim-lua/plenary.nvim", + "antoinemadec/FixCursorHold.nvim", + "nvim-treesitter/nvim-treesitter", + }, + config = function() + require("neotest").setup { + adapters = { + require "rustaceanvim.neotest", + }, + } + end, + keys = { + { + "nt", + function() + require("neotest").run.run() + end, + { desc = "Run Neotest" }, + }, + { + "nt", + function() + require("neotest").run.run(vim.fn.expand "%") + end, + { desc = "Test current file" }, + }, + }, + }, +}