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

@@ -345,7 +345,7 @@ describe('vim.fs', function()
eq(nil, result['a/noaccess'])
end)
it('opts.normalize=false uses {path} literally', function()
it('plain=true', function()
mkdir('testdir')
mkdir('testdir/$XTEST_FS_DIR')
mkdir('testdir/expanded')
@@ -360,9 +360,9 @@ describe('vim.fs', function()
exec_lua(function()
vim.uv.os_setenv('XTEST_FS_DIR', 'expanded')
local out = {} ---@type table<string, string>[]
for i, normalize in ipairs({ true, false }) do
for i, plain in ipairs({ false, true }) do
out[i] = {}
for name, etype in vim.fs.dir('testdir/$XTEST_FS_DIR', { normalize = normalize }) do
for name, etype in vim.fs.dir('testdir/$XTEST_FS_DIR', { plain = plain }) do
out[i][name] = etype
end
end