From 7f028d5cf95d921d8d6425c2998250e7d71822a5 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 14 Nov 2024 11:16:51 -0600 Subject: [PATCH] refactor(nvim): improve neotest bindings --- .../.config/nvim/lua/plugins/configs/neotest.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/neotest.lua b/users/price/dots/.config/nvim/lua/plugins/configs/neotest.lua index 23faba0f..638dd7bc 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/neotest.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/neotest.lua @@ -15,10 +15,17 @@ return { { "kf", "Neotest run file", desc = "Neotest: Run Test(s) in File" }, { "kl", "Neotest run last", desc = "Neotest: Run Last Test(s)" }, { "kp", "Neotest output-panel", desc = "Neotest: Output Panel" }, - { "ko", "Neotest output", desc = "Neotest: Output" }, - { "kn", "Neotest summary toggle", desc = "Neotest: Summary Toggle" }, - { "kk", "Neotest jump prev", desc = "Neotest: Jump Prev" }, - { "kj", "Neotest jump next", desc = "Neotest: Jump Next" }, + { + "ko", + function() + local neotest = require("neotest") + neotest.output.open({ enter = true }) + end, + desc = "Neotest: Output", + }, + { "kk", "Neotest summary toggle", desc = "Neotest: Summary Toggle" }, + { "kn", "Neotest jump prev", desc = "Neotest: Jump Prev" }, + { "kN", "Neotest jump next", desc = "Neotest: Jump Next" }, { "ka", "Neotest attach", desc = "Neotest: Attach" }, }, opts = function()