add: icon run and test

This commit is contained in:
asep.komarudin 2024-06-14 07:01:34 +07:00
parent cbd0b55458
commit ecc54b9f87
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ vim.g.pcode_whichkey = {
k = { '<cmd>lua print("Testing")<cr>', "Example" }, k = { '<cmd>lua print("Testing")<cr>', "Example" },
}, },
["r"] = { ["r"] = {
name = "Run", name = "Run",
j = { "<cmd>Jaq float<CR>", "Run With Jaq" }, j = { "<cmd>Jaq float<CR>", "Run With Jaq" },
}, },
} }

View file

@ -75,7 +75,7 @@ if vim.g.pcode_jest then
end, end,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<leader>T","",desc=" Test"}, { "<leader>T","",desc=" Test"},
{ "<leader>Tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" }, { "<leader>Tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" },
{ "<leader>Tr", function() require("neotest").run.run() end, desc = "Run Nearest" }, { "<leader>Tr", function() require("neotest").run.run() end, desc = "Run Nearest" },
{ "<leader>TT", function() require("neotest").run.run(vim.loop.cwd()) end, desc = "Run All Test Files" }, { "<leader>TT", function() require("neotest").run.run(vim.loop.cwd()) end, desc = "Run All Test Files" },