auto-split-direction.nvim is a lua plugin for Neovim that automatically determines the direction of window splitting. You can use :SplitAutoDirection
command to split a window. It splits the window horizontally if it is vertical, and vertically if it is horizontal.
(English / 日本語)
- Neovim
{
'yuma140902/auto-split-direction.nvim',
cmd = 'SplitAutoDirection',
setup = function()
require 'auto-split-direction'.setup {
-- your options here
}
end
}
{
debug = false, -- if true, show debug messages
ratio = 3.0 -- Column to row ratio threshold
}
See also auto-split-direction.nvim.txt.