diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index c91488b..36cc8fb 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -299,18 +299,20 @@ return require("packer").startup(function() -- Test runner use({ - "haydenmeade/neotest-jest", - "nvim-neotest/neotest-go", - "nvim-neotest/neotest-python", - { - "nvim-neotest/neotest", - requires = { - "nvim-lua/plenary.nvim", - "nvim-treesitter/nvim-treesitter", - "antoinemadec/FixCursorHold.nvim", - }, - config = [[require('plugins.testing')]], + "nvim-neotest/neotest", + requires = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + "antoinemadec/FixCursorHold.nvim", + -- { + -- "nvim-neotest/neotest-jest", + -- commit = "219033658bf8de6b91e201036a5cc5456905d9d2", + -- }, + "nvim-neotest/neotest-jest", + "nvim-neotest/neotest-go", + "nvim-neotest/neotest-python", }, + config = [[require('plugins.testing')]], }) -- REST diff --git a/lua/plugins/testing.lua b/lua/plugins/testing.lua index 6f370c8..405059b 100644 --- a/lua/plugins/testing.lua +++ b/lua/plugins/testing.lua @@ -1,57 +1,57 @@ local wk = require("which-key") require("neotest").setup({ - adapters = { - require("neotest-jest"), - require("neotest-python"), - require("neotest-go"), - }, + adapters = { + require("neotest-jest"), + require("neotest-python"), + require("neotest-go"), + }, }) local run_current_test_keybiding = { - function() - require("neotest").run.run() - end, - "Current test", + function() + require("neotest").run.run() + end, + "Current test", } local keybindings = { - name = "Test", - t = run_current_test_keybiding, - T = { - function() - require("neotest").run.run(vim.fn.expand("%")) - end, - "Current file", - }, - d = { - function() - require("neotest").run.run({ strategy = "dap" }) - end, - "Debug current test", - }, - s = { - function() - require("neotest").run.stop() - end, - "Stop running test", - }, - a = { - function() - require("neotest").run.attach() - end, - "Attach to running test", - }, + name = "Test", + t = run_current_test_keybiding, + T = { + function() + require("neotest").run.run(vim.fn.expand("%")) + end, + "Current file", + }, + d = { + function() + require("neotest").run.run({ strategy = "dap" }) + end, + "Debug current test", + }, + s = { + function() + require("neotest").run.stop() + end, + "Stop running test", + }, + a = { + function() + require("neotest").run.attach() + end, + "Attach to running test", + }, } wk.register({ - r = { - t = run_current_test_keybiding, - T = keybindings, - }, - c = { - T = keybindings, - }, + r = { + t = run_current_test_keybiding, + T = keybindings, + }, + c = { + T = keybindings, + }, }, { - prefix = "", + prefix = "", })