Skip to content
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