goolord / alpha-nvim

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

Undocumented options? #148

Closed adrian5 closed 1 year ago

adrian5 commented 1 year ago

Looking at the dashboard and startify theme templates, I noticed that some of the options used aren't documented anywhere. E.g. shrink_margin or the quite essential keymap. Would be nice to have those added to the docs.

gennaro-tedesco commented 1 year ago

I second this: I have been trying to set-up the startify screen without success (I find strange that the examples in the docs show how to set-up an empty startify screen instead of a normal one). Shouldn't this be the defaults docs instead?

goolord commented 1 year ago

this require'alpha'.setup(require'alpha.themes.startify'.config) is a "normal" startify screen. it reads from oldfiles, so if that's empty, so is the 'MRU' sections, if that's what you mean

goolord commented 1 year ago

documented more options here https://github.com/goolord/alpha-nvim/commit/54c9ba499209ac2563ddcefd47ba7bce35ae94ae

gennaro-tedesco commented 1 year ago

There is probably a tiny mistake here, in the docs. It seems that in order to change the footer one must

startify.section.footer.val = {{ type = "text", val = "footer" },}

instead of just startify.section.footer, does it not (otherwise I cannot get it to show the footer, or am I wrong)?

goolord commented 1 year ago

ah yeah that's right, that was a typo. fixed @gennaro-tedesco