Skip to content

feature: Allow show thin border above code block when language visible #288

@bew

Description

@bew

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

Hello o/

For a code block, when the language is visible and the code is configured with thin borders, the top border is not actually thin but thick.
image

Describe the solution you'd like

Show the language and its padding around with same hl group, but after the language I want to have thin border, so something like:

##language##_______________________________

Where # is the language_pad, as 'thick' blocks with same hl as the language, and ______ are the thin border chars.
For best default rendering, I think language_pad's default should be changed to 1 or 2 🤔

This should make the language look a bit like a 'tab' above the code 😉

Describe alternatives you've considered

Disabling the language, but then I loose information...

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestopen for contributionsOpen to community implementationwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions