nvimdev / dashboard-nvim

vim dashboard
MIT License
2.34k stars 190 forks source link

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

Closed polirritmico closed 7 months ago

polirritmico commented 7 months ago

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

glepnir commented 7 months ago

seems like cursor position is not correct most like a bug

polirritmico commented 7 months ago

Closed for #424