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

feat(doom): Add icon_offset to entry menu options. #423

Closed
wants to merge 1 commit into from
Closed

feat(doom): Add icon_offset to entry menu options. #423

wants to merge 1 commit into from

Conversation

polirritmico
Copy link
Contributor

This should allow the user to add an indentation offset in cases where a font icon causes the cursor position not to align correctly with the first character of the menu description. For example:

{
  -- ...
  config = {
    center = {
      {
        action = "Lazy",
        desc = " Lazy",
        icon = "󰒲 ",
        icon_offset = 1,
        key = "<leader>cl",
      },
      -- etc...
    },
  },
},

Fix #422. I don't know if this is the correct approach, but it's simple enough and works for me.

Before:
before

After:
after

Regards

This should allow the user to add an indentation offset in cases where a
font icon causes the cursor position not to align correctly with the
first character of the menu description.
@glepnir
Copy link
Member

glepnir commented Feb 11, 2024

seems like cursor position is not correct most like a bug

@polirritmico
Copy link
Contributor Author

polirritmico commented Feb 12, 2024

Closed for #424

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.

Misaligned cursor position with the Doom theme for some entries
2 participants