Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents autocmd from closing coc-explorer #19

Open
unknowledgeable opened this issue Aug 12, 2020 · 1 comment
Open

Prevents autocmd from closing coc-explorer #19

unknowledgeable opened this issue Aug 12, 2020 · 1 comment

Comments

@unknowledgeable
Copy link

unknowledgeable commented Aug 12, 2020

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!

@BerkeleyTrue
Copy link

BerkeleyTrue commented Sep 2, 2020

Same issue with Fugitive diffs. Prevents the gdiff buffer from closing, which then causes prevents the window from closing normally.

image

edit:

Got it to ignore fugitive buffs.

Here is an example multiline ignore

let g:beacon_ignore_buffers = [
      \ '\w*git*\w',
      \  '\w*fugitive*\w',
      \  '\w*defx*\w',
      \]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants