Skip to content

NvimTree closes nvim when opening a folder #2

Open
@antenore

Description

@antenore

First of all thanks a lot for this repository, it's a really nice source of inspiration.

This auto command causes neovim to close when I try to open a folder (:e /path/to/folder)

vim.api.nvim_create_autocmd({ "BufEnter" }, {

Does it happen to you as well?

I didn't find a solution yet, except commenting that block.

For reference, with NerdTree it works correctly, but the command is a bit different

'if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions