docs: func/expr options, misc #41102

This commit is contained in:
Justin M. Keyes
2026-08-01 17:48:32 -04:00
committed by GitHub
parent d060d91ef8
commit 98d767cd53
19 changed files with 259 additions and 248 deletions

View File

@@ -60,7 +60,7 @@ end
---@param cb fun(err?: string, entries?: nvim.dir.Entry[])
function M.list(_, path, cb)
local entries = {} ---@type nvim.dir.Entry[]
for name, type, err in fs.dir(path, { err = true, normalize = false }) do
for name, type, err in fs.dir(path, { err = true, plain = true }) do
if err then
cb(err)
return