diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-15 14:14:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-15 14:14:21 +0100 |
| commit | c171a697cbee36c4f36535e14f1407909733ca4b (patch) | |
| tree | 945a337b27aa3f15b26250d40b5535a5ead33181 /runtime/lua/vim/fs.lua | |
| parent | 3f21132a65a9c1f9ae5307bb59a5c730240c4a34 (diff) | |
| download | rneovim-c171a697cbee36c4f36535e14f1407909733ca4b.tar.gz rneovim-c171a697cbee36c4f36535e14f1407909733ca4b.tar.bz2 rneovim-c171a697cbee36c4f36535e14f1407909733ca4b.zip | |
fix(lua): add missing param annotations (#41911)
Diffstat (limited to 'runtime/lua/vim/fs.lua')
| -rw-r--r-- | runtime/lua/vim/fs.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua index 2fda9370df..05a34f7fed 100644 --- a/runtime/lua/vim/fs.lua +++ b/runtime/lua/vim/fs.lua @@ -483,6 +483,7 @@ function M.find(names, opts) local matches = {} --- @type string[] local errors = {} --- @type string[] + --- @param match string local function add(match) matches[#matches + 1] = M.normalize(match) if #matches == limit then @@ -498,6 +499,7 @@ function M.find(names, opts) local test --- @type fun(p: string): string[] if type(names) == 'function' then + --- @param p string test = function(p) local t = {} for name, type, err in M.dir(p, { err = true }) do @@ -510,6 +512,7 @@ function M.find(names, opts) return t end else + --- @param p string test = function(p) local t = {} --- @type string[] local ok, aerr = uv.fs_access(p, 'R') -- Check if the root dir is readable. |