summaryrefslogtreecommitdiffstatshomepage
path: root/nvim
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-10-04 11:25:11 -0500
committerToby Vincent <tobyv13@gmail.com>2022-10-04 11:25:11 -0500
commitd23e3bd34f6e096416c741a227702a8d8c9ebe76 (patch)
tree066d86c78788271aa4d52023659b6381adca62a4 /nvim
parentb1b173298e72d05ab3e909e67f9fdb95b5bb682e (diff)
fix(nvim): fix bug with how oldfiles was parsed in Alphas MRU
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/alpha.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/alpha.lua b/nvim/.config/nvim/lua/tobyvin/plugins/alpha.lua
index a2b9e8d..5c23d86 100644
--- a/nvim/.config/nvim/lua/tobyvin/plugins/alpha.lua
+++ b/nvim/.config/nvim/lua/tobyvin/plugins/alpha.lua
@@ -90,7 +90,7 @@ end
M.mru_cache = nil
M.mru = function()
if M.mru_cache == nil then
- local oldfiles = vim.tbl_filter(M.mru_filter, { unpack(vim.v.oldfiles, 1, 10) })
+ local oldfiles = { unpack(vim.tbl_filter(M.mru_filter, vim.v.oldfiles), 1, 10) }
local tbl = {}
for i, filename in ipairs(oldfiles) do
tbl[i] = M.file_button(filename, tostring(i % 10))