Skip to content

feature: toggle automatically when the current line is hidden by minimapΒ #201

@delphinus

Description

@delphinus

Did you check the documentation?

  • I have read all the docs

Is your feature request related to a problem? Please describe.

With inlay hints on, line length can be longer than expected and the minimap often hides the line. I want to toggle the minimap automatically when the cursor is/isn't on longer lines.

Describe the solution you'd like

I wrote the logic in my dotfiles here. But this code is not enough to work.

  • My logic only works with float type minimap.
  • The width of minimap cannot be calculated when the window is not drawn. Yes, I know from it by require("neominimap.config").float.minimap_width, but it lacks sign columns in minimaps.
  • Also the width of Neovim's sign columns + line number is difficult to know.

Can you show some more neat solution to do this?

Kapture.2024-12-13.at.17.44.43.mp4

Describe alternatives you've considered

;)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions