summaryrefslogtreecommitdiff
path: root/lua/user/set.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-08-15 13:39:00 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-08-15 13:39:00 +0200
commitc53bda87d0fa6a5cd95595c374215c586bdd7d40 (patch)
tree6d563bf300d3ae01b51015c514f050a2b4a28444 /lua/user/set.lua
parent50053eb550b160ddd2e953894398f5e23f0fd9df (diff)
checkpoint
Diffstat (limited to 'lua/user/set.lua')
-rw-r--r--lua/user/set.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/user/set.lua b/lua/user/set.lua
index 9f526f4..cb8dba4 100644
--- a/lua/user/set.lua
+++ b/lua/user/set.lua
@@ -90,7 +90,7 @@ opt.formatoptions = "cqrnj"
-- Get the current working directory, replace the $HOME portion of the path with ~,
-- and extract the last three directories
-local cwd = vim.fn.getcwd():gsub(os.getenv('HOME'), '~')
+local cwd = vim.fn.getcwd():gsub(os.getenv("HOME"), "~")
local last_dirs = string.match(cwd, "[^/]+/[^/]+/[^/]+/?$")
if last_dirs then
opt.titlestring = last_dirs .. " -> %t"