mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(lualine): make sure path is in root before substituting
This commit is contained in:
parent
d017bb861e
commit
67b216c973
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ function M.pretty_path(opts)
|
|||
|
||||
if opts.relative == "cwd" and path:find(cwd, 1, true) == 1 then
|
||||
path = path:sub(#cwd + 2)
|
||||
else
|
||||
elseif path:find(root, 1, true) == 1 then
|
||||
path = path:sub(#root + 2)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue