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

nvim-tree doesn't ignore minimap, tree considers it as separate window #142

Closed
raven2cz opened this issue Feb 10, 2022 · 7 comments
Closed
Labels
conflict minimap.vim is incompatable in some way with this workflow stale

Comments

@raven2cz
Copy link

I'm using nvim-tree and if I try open the file from the tree. The message is shown "Pick window:" And I have to select A, B because the minimap is considered as second window B.

Do you have some trick how to correctly configure the minimap which cannot be regular window, just part of editor window? Or provide information to other plugins that it is not regular window?

@ZNielsen ZNielsen added the conflict minimap.vim is incompatable in some way with this workflow label Feb 10, 2022
@ZNielsen
Copy link
Collaborator

If there is a plugin that does it that way, I don't know of it. I think that's a fundamental vimism.

There might be a way to indicate a window is not a "regular" window and should be ignored, but I haven't personally looked into it. If you find something in the documentation, please do let us know so we can give it a try!

@dsully
Copy link
Contributor

dsully commented Apr 5, 2022

I'd definitely like to "ignore" the minimap window as well. As in, I never want to switch my cursor to it.

@ZNielsen
Copy link
Collaborator

ZNielsen commented Apr 5, 2022

If you can find some vim setting that enables that, please let us know 😃

@dsully
Copy link
Contributor

dsully commented Apr 5, 2022

This is what I ended up with: dsully/dotfiles@caa22b7 based off of your answer in #106 (comment)

@ZNielsen ZNielsen added the enhancement New feature or request label Apr 6, 2022
@ZNielsen
Copy link
Collaborator

ZNielsen commented Apr 6, 2022

Cool, this could possibly be gated by a setting when minimap.vim is setting up the auto commands. Moving that out to a new issue, since it seems different than the original ask.

@axsaucedo
Copy link

Currently I have managed to get a sane way of solving this by ensuring minimap is hidden when entering NvimTree, and displayed when entering the main window(s).

    let g:minimap_auto_start = 1
    let g:minimap_auto_start_win_enter = 1
    let minimap_close_buftypes = ["nofile"]
    let g:minimap_block_filetypes = [ 'fugitive', 'nerdtree', 'tagbar', 'fzf', 'NvimTree' ]

The only inconvenience is that if now I want to properly disable / hide the nvimtree it would re-appear every time, so it would be useful to have a :MinimapToggleEnabled (as well as a function to retrieve whether it's enabled so it can be displayed in Airline tab).

@stale
Copy link

stale bot commented Aug 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 12, 2022
@stale stale bot closed this as completed Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict minimap.vim is incompatable in some way with this workflow stale
Projects
None yet
Development

No branches or pull requests

4 participants