add visibility handling for the floating window
This commit is contained in:
@@ -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" })
|
||||
|
||||
Reference in New Issue
Block a user