Can I open the Output Window as a split rather than a floating window? #56
-
Sometimes it would be nice to see the test error output while browsing through the file. Is this possible? Currently, when I run a test, I just get the popup which disappears when I navigate away. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I've added a new option require("neotest").output.open({ open_win = function() vim.cmd("vsplit") end }) |
Beta Was this translation helpful? Give feedback.
-
Works great. Thanks |
Beta Was this translation helpful? Give feedback.
-
Neovim allows you to navigate to a pane by number with, e.g. When a floating window pops up, it seems to always be assigned to be the last pane. If you enter a larger number than there are panes, Neovim will take you to the last pane. So To make things a bit easier, I've added the following mapping to my vim.api.nvim_set_keymap('n', '<C-w><C-f>', '9<C-w><C-w>', { noremap = true, silent = true }) This lets you navigate around the error message, but still closes the pane when you navigate away, which I find convenient. |
Beta Was this translation helpful? Give feedback.
I've added a new option
open_win
to theoutput.open
function so you can use it to customise how the window is opened