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

Show more than 10 MRU files in Startify #204

Open
segeljakt opened this issue Apr 20, 2023 · 3 comments
Open

Show more than 10 MRU files in Startify #204

segeljakt opened this issue Apr 20, 2023 · 3 comments

Comments

@segeljakt
Copy link

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
Copy link
Owner

goolord commented Apr 20, 2023

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
Copy link
Owner

goolord commented Apr 20, 2023

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
Copy link

litoj commented Sep 4, 2023

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

Just thought you may find it also useful

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

No branches or pull requests

3 participants