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

fix: rendering shortcuts in long lines #299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lyokha
Copy link

@lyokha lyokha commented Aug 29, 2024

This patch

  • adds an extra space before the shortcut label if padding.center is less than 1,
  • calculates correct position of shortcut when highlighting it by taking into account both padding.center and padding.left.

Current rendering of long lines in Theta theme:

alpha-nvim-garbled

Fixed rendering:

alpha-nvim-fixed

This patch
- adds extra space before the shortcut label if padding.center is less than 1,
- calculate correct position of shortcut when highlighting it by taking into
  account both padding.center and padding.left.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant