From 5246e521c42ca64edd5e6a4225de75d77c03a7ab Mon Sep 17 00:00:00 2001 From: max397574 Date: Fri, 17 Dec 2021 13:21:38 +0100 Subject: fix(utils): shorten path in oldfiles directory title --- lua/startup/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index c549d95..fe18f8e 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -248,7 +248,7 @@ function U.get_oldfiles_directory(amount) oldfiles_total = oldfiles_total + 1 end oldfiles = oldfiles_shortened - table.insert(oldfiles, 1, "Last Files in " .. directory .. ":") + table.insert(oldfiles, 1, "Last Files in " .. string.gsub(directory, home, "~") .. ":") table.insert(oldfiles, 2, "") local length = U.longest_line(oldfiles) + 2 -- cgit v1.2.3