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

New setting: prevent ever entering the minimap #146

Open
ZNielsen opened this issue Apr 6, 2022 · 7 comments
Open

New setting: prevent ever entering the minimap #146

ZNielsen opened this issue Apr 6, 2022 · 7 comments
Labels
enhancement New feature or request feature request

Comments

@ZNielsen
Copy link
Collaborator

ZNielsen commented Apr 6, 2022

Details in #142:

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

Originally posted by @dsully in #142 (comment)

@ZNielsen ZNielsen added enhancement New feature or request feature request labels Apr 6, 2022
@stale
Copy link

stale bot commented Jul 7, 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.

@ZNielsen
Copy link
Collaborator Author

not stale

@stale
Copy link

stale bot commented Oct 20, 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 Oct 20, 2022
@malonehedges
Copy link

not stale

@stale stale bot removed the stale label Nov 17, 2022
@stale
Copy link

stale bot commented Feb 18, 2023

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 Feb 18, 2023
@stale stale bot closed this as completed Mar 24, 2023
@ZNielsen ZNielsen reopened this Oct 3, 2023
@stale stale bot removed the stale label Oct 3, 2023
@ZNielsen ZNielsen added the pinned label Oct 3, 2023
@ZNielsen ZNielsen removed the pinned label Apr 5, 2024
@jjj11x
Copy link

jjj11x commented May 14, 2024

This seems to work for me (translated to vimscript for a .vimrc):

augroup minimap_group
    " get rid of existing
    autocmd!
    autocmd WinEnter * call CheckSkipMinimap()
augroup END
function! CheckSkipMinimap()
    let l:mmwinnr = bufwinnr('-MINIMAP-')
    if l:mmwinnr == -1
        " no minimap window
        return
    endif

    if winnr() == l:mmwinnr
        " Go to the other window.
        wincmd w
    endif
endfunction

@jjj11x
Copy link

jjj11x commented May 18, 2024

Preventing entering the minimap does unfortunately also seem to prevent using the mouse in the minimap for scrolling though.

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

No branches or pull requests

3 participants