From c10e36fc016cb265026a772571ce0a405df2ab71 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 26 Aug 2025 15:31:16 +0200 Subject: refactor(lua): consistent use of local aliases --- runtime/lua/vim/fs.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/lua/vim/fs.lua') 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 -- cgit