From 7d759edf68303c7681a6521fbc3675661204cd4f Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 24 Jun 2025 11:26:15 -0500 Subject: feat(nvim): replace old config with new one --- .../nvim.new/lua/ibrahim/plugins/neotest.lua | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 dot_config/nvim.new/lua/ibrahim/plugins/neotest.lua (limited to 'dot_config/nvim.new/lua/ibrahim/plugins/neotest.lua') diff --git a/dot_config/nvim.new/lua/ibrahim/plugins/neotest.lua b/dot_config/nvim.new/lua/ibrahim/plugins/neotest.lua deleted file mode 100644 index 68e7bc3..0000000 --- a/dot_config/nvim.new/lua/ibrahim/plugins/neotest.lua +++ /dev/null @@ -1,44 +0,0 @@ -return { - "nvim-neotest/neotest", - ft = { "python" }, - dependencies = { - "nvim-lua/plenary.nvim", - "antoinemadec/FixCursorHold.nvim", - "nvim-treesitter/nvim-treesitter", - "nvim-neotest/neotest-python", - "nvim-neotest/nvim-nio", - }, - opts = function() - return { - adapters = { - require("neotest-python")({ - -- Use the current Python binary on the path. - -- This will usually be a virtual environment. - python = "python", - runner = "pytest", - is_test_file = function(file_path) ---@param file_path string - -- I place all of my Python test files in a - -- `tests` directory, and they all start with - -- `test_` per Pytest conventions. - local normalized_path = vim.fs.normalize(file_path) - return normalized_path:match("tests/.*%/test_.*%.py$") ~= nil - end, - }), - }, - } - end, - config = function(_, opts) - require("neotest").setup(opts) - - vim.keymap.set({ "n" }, "tr", require("neotest").run.run, { desc = "Neotest: run test at cursor" }) - vim.keymap.set({ "n" }, "tf", function() - require("neotest").run.run(vim.fn.expand("%")) - end, { desc = "Neotest: run all tests in current file" }) - vim.keymap.set( - { "n" }, - "ts", - require("neotest").summary.toggle, - { desc = "Neotest: toggle summary panel" } - ) - end, -} -- cgit v1.2.3