diff options
author | max397574 <[email protected]> | 2021-12-17 13:21:38 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-12-17 13:21:38 +0100 |
commit | 5246e521c42ca64edd5e6a4225de75d77c03a7ab (patch) | |
tree | 26a6c4a89c19449889483c113dbf9b08634d3653 | |
parent | 5cc8715548cdd80f0a459e752df93df31f62e600 (diff) |
fix(utils): shorten path in oldfiles directory title
-rw-r--r-- | lua/startup/utils.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |