Skip to content

How to conditionally prevent mini.files from opening on startup #1640

Closed Answered by echasnovski
Kazppa asked this question in Q&A
Discussion options

You must be logged in to vote

Basically I use mini.files as my default file explorer but i'd like on nvim launch that mini.files doesn't open if a (mk)session has been auto loaded (I use persistence.nvim).
I do have an event to detect when a session has been successfully loaded on startup but i can't prevent mini.files from appearing. It seems mini.files opens way after this event and calling close at this moment does nothing (yet).

'mini.files' doesn't open on startup with if Neovim is started as nvim from command line. The "default explorer" functionality means that 'mini.files' will open if Neovim is started like nvim . / nvim path/to/directory or inside running Neovim instance executing :edit . / :edit path/to/d…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Kazppa
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.files
2 participants