Skip to content

Prevents autocmd from closing coc-explorer #19

@unknowledgeable

Description

@unknowledgeable

I use the following to auto-close coc-explorer if it's the last open window:

autocmd BufEnter * if (winnr("$") == 1 && &filetype == 'coc-explorer') | q | endif

which is a suggestion I found based on NERDTree's suggestion for auto-closing their file browser:

autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

Beacon prevents this from happening with default settings. Any way around this?

E: I'm not sure if setting beacon to ignore buffers would work but I don't really understand how to implement g:beacon_ignore_buffers = [\w*git*\w]. An example with multiple ignores would be very helpful! Thanks!

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