/spiral-split.nvim

Primary LanguageLuaMIT LicenseMIT

spiral-split

window split to automatically change the direction of separation.

wf_230123-003534.mp4

Setup

require("spiral-split").setup({
 height_weight = 2.5,
 width_weight = 1.0,
})

Usage

vim.keymap.set(
 { "n" },
 "<CR>",
 require("spiral-split").split(),
 { silent = true, noremap = true, desc = "spiral split" }
)