aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/fs.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-08-26 15:31:16 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-08-28 11:34:01 +0200
commitc10e36fc016cb265026a772571ce0a405df2ab71 (patch)
tree2918f8f85fbd9595eb55af33033acde417d415d2 /runtime/lua/vim/fs.lua
parenta33284c2c068a9204330bc941e274b1f5bd9f5c6 (diff)
downloadrneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.gz
rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.bz2
rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.zip
refactor(lua): consistent use of local aliases
Diffstat (limited to 'runtime/lua/vim/fs.lua')
-rw-r--r--runtime/lua/vim/fs.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua
index 3d86f94c9f..1a3011e495 100644
--- a/runtime/lua/vim/fs.lua
+++ b/runtime/lua/vim/fs.lua
@@ -190,9 +190,9 @@ function M.dir(path, opts)
if
opts.depth
and level < opts.depth
- and (t == 'directory' or (t == 'link' and opts.follow and (vim.uv.fs_stat(
- M.joinpath(path, f)
- ) or {}).type == 'directory'))
+ and (t == 'directory' or (t == 'link' and opts.follow and (
+ uv.fs_stat(M.joinpath(path, f)) or {}
+ ).type == 'directory'))
and (not opts.skip or opts.skip(f) ~= false)
then
dirs[#dirs + 1] = { f, level + 1 }
@@ -369,7 +369,7 @@ function M.find(names, opts)
if
type_ == 'directory'
- or (type_ == 'link' and opts.follow and (vim.uv.fs_stat(f) or {}).type == 'directory')
+ or (type_ == 'link' and opts.follow and (uv.fs_stat(f) or {}).type == 'directory')
then
dirs[#dirs + 1] = f
end