Skip to content
Discussion options

You must be logged in to vote

I’m not sure if it’s the same as the fzf layout you mentioned but if I understand correctly you want to open in a bottom split?

That’s very simple with fzf-lua, set winopts.split to whatever command you want that opens a new window, for example:

require'fzf-lua'.setup({ winopts = { split = 'belowright new' } })

This can be tested with single commands too:

:lua require'fzf-lua'.files({ winopts = { split = 'belowright new' } })

Btw if you want 40%, that’s possible by using winopts as a lua function and resizing the split based on 0.4*vim.o.lines.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ibhagwan
Comment options

@xvvhang
Comment options

@ibhagwan
Comment options

@xvvhang
Comment options

@xvvhang
Comment options

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