From caf8648bf884a13ceaae0565afd1b37666003cd4 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Sun, 2 Feb 2025 22:22:05 +0000 Subject: [PATCH] neote4st --- lua/plugins/neotest.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lua/plugins/neotest.lua 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" }, + }, + }, + }, +}