♻️ refactor(nvim): move neotest keymaps to respective extras

This commit is contained in:
Sergio Laín 2024-01-22 12:39:39 +01:00
parent cfe8876a90
commit bc7e492f58
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 12 additions and 9 deletions

View file

@ -22,6 +22,14 @@ return {
{ "<S-F2>", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" },
},
},
{
"nvim-neotest/neotest",
optional = true,
-- stylua: ignore
keys = {
{ "<leader>tL", function() require("neotest").run.run_last({ strategy = "dap" }) end, desc = "Debug Last Test" },
},
},
{
"folke/which-key.nvim",
opts = {

View file

@ -141,6 +141,10 @@ return {
["neotest-vitest"] = {},
},
},
-- stylua: ignore
keys = {
{ "<leader>tw", function() require('neotest').run.run({ jestCommand = 'jest --watch ' }) end, desc = "Run Watch" },
},
},
{
"luckasRanarison/nvim-devdocs",

View file

@ -1,14 +1,5 @@
return {
{ import = "lazyvim.plugins.extras.test.core" },
{
"nvim-neotest/neotest",
-- stylua: ignore
keys = {
{ "<leader>tl", function() require("neotest").run.run_last() end, desc = "Run Last Test" },
{ "<leader>tL", function() require("neotest").run.run_last({ strategy = "dap" }) end, desc = "Debug Last Test" },
{ "<leader>tw", "<cmd>lua require('neotest').run.run({ jestCommand = 'jest --watch ' })<cr>", desc = "Run Watch" },
},
},
{
"folke/which-key.nvim",
opts = {