goolord / alpha-nvim

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

Show more than 10 MRU files in Startify #204

Open segeljakt opened 1 year ago

segeljakt commented 1 year ago

How do I show more than 10 MRU files in Startify? I see there is a items_number option internally in the code but I don't know how to modify it.

goolord commented 1 year ago

something like

startify.section.mru.val[4].val = function
   return { startify.mru(20, nil, 20) }
end
startify.section.mru_cwd.val[4].val = function
   return { startify.mru(0, vim.fn.getcwd(), 20) }
end

would likely suffice, but maybe that could get stuck in startify.mru_opts since otherwise modifying the mru sections is pretty cumbersome

goolord commented 1 year ago

also, i could design a metatable for the sections to actually definitively give themes a decent API for making small changes like this.

i don't have a ton of free time to add features to this plugin, i barely have enough free time to maintain it at the moment, so PRs welcome and appreciated! it's really an easy plugin to hack on

litoj commented 11 months ago

I currently use the following this setup to generalize bookmark creation and highlighting.

Just thought you may find it also useful