mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 19:28:24 +00:00
fix(explorer): don't use --absolute-path option, since that resolves paths to realpath. See #901. See #905. See #904
This commit is contained in:
parent
fe27bf13c9
commit
97570d23ac
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,6 @@ function State:setup(opts, ctx)
|
||||||
"d", -- include directories
|
"d", -- include directories
|
||||||
"--path-separator", -- same everywhere
|
"--path-separator", -- same everywhere
|
||||||
"/",
|
"/",
|
||||||
"--absolute-path", -- easier to work with
|
|
||||||
"--follow", -- always needed to make sure we see symlinked dirs as dirs
|
"--follow", -- always needed to make sure we see symlinked dirs as dirs
|
||||||
}
|
}
|
||||||
self.all = #ctx.filter.search > 0
|
self.all = #ctx.filter.search > 0
|
||||||
|
@ -352,6 +351,7 @@ function State:setup(opts, ctx)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
opts.dirs = { self.cwd }
|
||||||
else
|
else
|
||||||
opts.dirs = self.tree:dirs(self.cwd)
|
opts.dirs = self.tree:dirs(self.cwd)
|
||||||
for _, dir in ipairs(opts.dirs or {}) do
|
for _, dir in ipairs(opts.dirs or {}) do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue