Skip to content

Is there a way to use yazi in nvim without a floating window #303

Answered by mikavilpas
JumpyLionnn asked this question in Q&A
Discussion options

You must be logged in to vote

Right now it's required. I started creating a proof of concept where yazi could be opened in the current window (meaning, split or buffer), so it might be an option in the future.

However, closing Neovim when yazi is closed might be a disruptive default for some users.

Still, it should be possible to do what I think it is you are asking. I would suggest looking into the advanced configuration section of the readme. You can find a section showing some hooks, and I think you could implement the following logic in your configuration:

  • when yazi is closed, check if there are other open buffers in Neovim
  • if there are no open buffers, execute :qa to quit

Replies: 1 comment 1 reply

Comment options

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

Answer selected by JumpyLionnn
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