diff --git a/nvim/lua/plugins/neotest.lua b/nvim/lua/plugins/neotest.lua deleted file mode 100755 index 8724978..0000000 --- a/nvim/lua/plugins/neotest.lua +++ /dev/null @@ -1,70 +0,0 @@ --- plugins/neotest_config.lua -return { - -- Load neotest - { - "nvim-neotest/neotest", - dependencies = { - -- For JavaScript, TypeScript (Vite) - "marilari88/neotest-vitest", - -- For Python - "nvim-neotest/neotest-python", - -- For C, C++, Rust - "orjangj/neotest-ctest", - "rouge8/neotest-rust", - }, - config = function() - local neotest = require("neotest") - local keymap = vim.keymap.set - - -- General setup for neotest - neotest.setup({ - adapters = { - -- Vite Adapter for JavaScript/TypeScript - require("neotest-vitest"), - -- Python Adapter - require("neotest-python"), - -- C/C++ Adapter - require("neotest-ctest"), - -- Rust Adapter - require("neotest-rust"), - }, - }) - - -- Keybinding Setup - local opts = { noremap = true, silent = true } - - -- Run nearest test - opts.desc = "Run nearest test" - keymap("n", "tr", require("neotest").run.run(), opts) - - -- Run all tests in the current file - opts.desc = "Run all tests in current file" - keymap("n", "tf", require("neotest").run.run(vim.fn.expand("%")), opts) - - -- Run all tests in the entire project - opts.desc = "Run all tests in project" - keymap("n", "ta", "Neotest run", opts) - - -- Stop running tests - opts.desc = "Stop tests" - keymap("n", "ts", "Neotest stop", opts) - - opts.desc = "Jump to next test" - keymap("n", "tn", "Neotest jump next", opts) - - opts.desc = "Jump to previous test" - keymap("n", "tp", "Neotest jump prev", opts) - - -- Show test summary - opts.desc = "Show neotest test summary" - keymap("n", "tv", "Neotest summary", opts) - - -- Toggle the Neotest panel - opts.desc = "Show neotest output" - keymap("n", "to", "Neotest output", opts) - - opts.desc = "Show neotest output as panel" - keymap("n", "tn", "Neotest output-panel", opts) - end, - }, -}