wfxr/minimap.vim

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

raven2cz opened this issue · 7 comments

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?

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!

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

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

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

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.

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 commented

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.