all repos

init.lua @ a7611c8

my nvim config
2 files changed, 9 insertions(+), 4 deletions(-)
fix neotest, add some new keymaps
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2022-10-24 13:40:16 +0300
Parent: fccdda9
M lua/configs/neotest.lua

@@ -1,3 +1,4 @@

+--# selene: allow(multiple_statements) local neotest = require "neotest" local map = require("core.utils").map

@@ -26,15 +27,18 @@ },

}, } +-- stylua: ignore start map("n", "<leader>tn", neotest.run.run) map("n", "<leader>ts", neotest.summary.toggle) +map("n", "<leader>ta", neotest.run.attach) map("n", "<leader>tS", neotest.run.stop) map("n", "<leader>to", neotest.output.open) map("n", "]t", neotest.jump.next) map("n", "[t", neotest.jump.prev) +map("n", "]T", function() neotest.jump.next { status = "failed" } end) +map("n", "[T", function() neotest.jump.prev { status = "failed" } end) +map("n", "<leader>td", function() neotest.run.run { strategy = "dap" } end) map("n", "<leader>tt", function() neotest.run.run(vim.fn.expand "%") ---@diagnostic disable-line: missing-parameter end) -map("n", "<leader>td", function() - neotest.run.run { strategy = "dap" } -end) +-- stylua: ignore end
M lua/plugins.lua

@@ -118,7 +118,8 @@

use { -- test runner "nvim-neotest/neotest", config = u.get.config "neotest", - keys = { "<leader>t", "[t", "]t" }, + keys = { "<leader>t", "[t", "]t", "]T", "[T" }, + module = "neotest", requires = { { "nvim-neotest/neotest-go", module = "neotest-go" }, { "haydenmeade/neotest-jest", module = "neotest-jest" },