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

Add mru_opts.mru_start and mru_opts.mru_cwd_start #230

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lua/alpha/themes/startify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ local mru_opts = {
ignore = function(path, ext)
return (string.find(path, "COMMIT_EDITMSG")) or (vim.tbl_contains(default_mru_ignore, ext))
end,
autocd = false
autocd = false,
mru_cwd_start = 10,
mru_start = 0,
}

--- @param start number
Expand Down Expand Up @@ -187,7 +189,7 @@ local section = {
{
type = "group",
val = function()
return { mru(10) }
return { mru(mru_opts.mru_start) }
end,
},
},
Expand All @@ -201,7 +203,7 @@ local section = {
{
type = "group",
val = function()
return { mru(0, vim.fn.getcwd()) }
return { mru(mru_opts.mru_cwd_start, vim.fn.getcwd()) }
end,
opts = { shrink_margin = false },
},
Expand Down