♻️ refactor(nvim): move neotest keymaps to respective extras
This commit is contained in:
parent
cfe8876a90
commit
bc7e492f58
3 changed files with 12 additions and 9 deletions
|
@ -22,6 +22,14 @@ return {
|
||||||
{ "<S-F2>", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" },
|
{ "<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",
|
"folke/which-key.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
@ -141,6 +141,10 @@ return {
|
||||||
["neotest-vitest"] = {},
|
["neotest-vitest"] = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ "<leader>tw", function() require('neotest').run.run({ jestCommand = 'jest --watch ' }) end, desc = "Run Watch" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"luckasRanarison/nvim-devdocs",
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
|
|
@ -1,14 +1,5 @@
|
||||||
return {
|
return {
|
||||||
{ import = "lazyvim.plugins.extras.test.core" },
|
{ 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",
|
"folke/which-key.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue