goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.82k stars 109 forks source link

Unable to override button higlight group #128

Closed ChristianChiarulli closed 2 years ago

ChristianChiarulli commented 2 years ago

(https://github.com/goolord/alpha-nvim/blob/d54ce84559ee50500a1133d1c58daf9cd715525b/lua/alpha/themes/dashboard.lua#L44)

I am unable to change this highlight from "Keyword"

goolord commented 2 years ago
local function button(sc, txt, keybind, keybind_opts)
  local b = dashboard.button(sc,txt,keybind,keybind_opts)
  b.opts.hl_shortcut = "foo"
  return b
end

should be sufficient