add visibility handling for the floating window

This commit is contained in:
2025-12-23 22:31:39 +01:00
parent e92c8476c2
commit 463d0ae2f7
5 changed files with 134 additions and 25 deletions

View File

@@ -1,10 +1,16 @@
if vim.g.loaded_test_samurai then
if vim.g.loaded_test_samurai_plugin == 1 then
return
end
vim.g.loaded_test_samurai = true
vim.g.loaded_test_samurai_plugin = 1
vim.api.nvim_create_user_command("TestNearest", function()
require("test-samurai").test_nearest()
end, {
desc = "Run nearest test with test-samurai",
})
end, { desc = "test-samurai: run nearest test" })
vim.api.nvim_create_user_command("TsShowOutput", function()
require("test-samurai").show_output()
end, { desc = "test-samurai: show last test output" })
vim.keymap.set("n", "<leader>to", function()
require("test-samurai").show_output()
end, { desc = "test-samurai: show last test output" })