From aaf72a87a653eac2dda019e2c4037df11b7398b1 Mon Sep 17 00:00:00 2001 From: PEMessage <1165739182@qq.com> Date: Sun, 16 Jul 2023 02:16:30 +0800 Subject: [PATCH] Add mrt_opts.mru_start and mrt_opts.mru_cwd_start The origin startify using 0 for mru and 10 for mru_cwd. This opts allow you change the setting to fit ori version. --- lua/alpha/themes/startify.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/alpha/themes/startify.lua b/lua/alpha/themes/startify.lua index 3101856..94b7e24 100644 --- a/lua/alpha/themes/startify.lua +++ b/lua/alpha/themes/startify.lua @@ -110,7 +110,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 @@ -182,7 +184,7 @@ local section = { { type = "group", val = function() - return { mru(10) } + return { mru(mru_opts.mru_start) } end, }, }, @@ -196,7 +198,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 }, },