From e3e6fadfd82861471c32fdcabe00bbef3de84563 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 20 May 2023 17:30:48 +0200 Subject: feat(fs): expose join_paths as `vim.fs.joinpath` (#23685) This is a small function but used a lot in some plugins. --- runtime/doc/lua.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 4eec4ee583..c6568b073d 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2576,6 +2576,16 @@ find({names}, {opts}) *vim.fs.find()* (table) Normalized paths |vim.fs.normalize()| of all matching files or directories +joinpath({...}) *vim.fs.joinpath()* + Concatenate directories and/or file into a single path with normalization + (e.g., `"foo/"` and `"bar"` get joined to `"foo/bar"`) + + Parameters: ~ + • {...} (string) + + Return: ~ + (string) + normalize({path}, {opts}) *vim.fs.normalize()* Normalize a path to a standard format. A tilde (~) character at the beginning of the path is expanded to the user's home directory and any -- cgit