Skip to content

feat(ui): Delete Whitespaces in Blankline #1529

@pysan3

Description

@pysan3

I've searched open issues for similar requests

  • Yes

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

First of all, thanks for the plugin. I am having amazing experience so far but got a very minor hiccup.

I would like to quickly move the cursor to the Available section.
I believe the fastest way would be to use the } keybind to move down a paragraph, but since there are whitespaces between the Installed section, I cannot move between the sections easily.

As you can see, there are whitespaces (highlighted in red) above the Available section which does not make it a separate paragraph.
image

Describe the solution you'd like

It would be nice if there were no whitespaces in the blankline between the sections.

Or, another solution would be to add a specific keybind (e.g. [[, ]]) to jump to the next section.

Describe potential alternatives you've considered

I believe changing some code near this part (or inside get_styles) so that indentation is not added if line:len() == 0 or something similar to that would be a possible fix.
But I was hesitant to submit a PR becuz this method might rather be a hack and there might be a better and more elegant way to solve the issue.

https://github.com/williamboman/mason.nvim/blob/cd7835b15f5a4204fc37e0aa739347472121a54c/lua/mason-core/ui/display.lua#L122-L133

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions