aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-01-01 12:29:51 -0800
committerGitHub <noreply@github.com>2025-01-01 12:29:51 -0800
commitdc692f553aae367a03f286e0d59561247941f96c (patch)
tree5a4bbbf2cc37c583a491258ebba8e2f421e0079a /runtime/doc/lua.txt
parent9d114b720514b0bde96dbdd9b6ef328d232a1589 (diff)
downloadrneovim-dc692f553aae367a03f286e0d59561247941f96c.tar.gz
rneovim-dc692f553aae367a03f286e0d59561247941f96c.tar.bz2
rneovim-dc692f553aae367a03f286e0d59561247941f96c.zip
docs: misc #31479
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 022adb3da7..25e58c0240 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -817,8 +817,8 @@ vim.json.encode({obj}, {opts}) *vim.json.encode()*
Parameters: ~
• {obj} (`any`)
• {opts} (`table<string,any>?`) Options table with keys:
- • escape_slash: (boolean) (default false) When true, escapes
- `/` character in JSON strings
+ • escape_slash: (boolean) (default false) Escape slash
+ characters "/" in string values.
Return: ~
(`string`)
@@ -3062,11 +3062,13 @@ vim.fs.find({names}, {opts}) *vim.fs.find()*
items
vim.fs.joinpath({...}) *vim.fs.joinpath()*
- Concatenates partial paths into one path. Slashes are normalized
- (redundant slashes are removed, and on Windows backslashes are replaced
- with forward-slashes) (e.g., `"foo/"` and `"/bar"` get joined to
- `"foo/bar"`) (windows: e.g `"a\foo\"` and `"\bar"` are joined to
- `"a/foo/bar"`)
+ Concatenates partial paths (one absolute or relative path followed by zero
+ or more relative paths). Slashes are normalized: redundant slashes are
+ removed, and (on Windows) backslashes are replaced with forward-slashes.
+
+ Examples:
+ • "foo/", "/bar" => "foo/bar"
+ • Windows: "a\foo\", "\bar" => "a/foo/bar"
Attributes: ~
Since: 0.10.0