Skip to content

Change splits orientation? #100

Answered by mrjones2014
NormTurtle asked this question in Q&A
Discussion options

You must be logged in to vote

Something like this should work:

-- convert a horizontal split to a vertical split
local buf = vim.api.nvim_get_current_buf()
vim.cmd.q()
vim.cmd.vsp()
vim.api.nvim_win_set_buf(0, buf)

Though that wouldn't be "directional" like the plugin so maybe there is room for a plugin feature here.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NormTurtle
Comment options

Answer selected by NormTurtle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants