diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-03-26 13:01:48 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-03-26 13:30:11 +0100 |
commit | 25fa051fa157ca4bce712e61602447a4222581ca (patch) | |
tree | 49b2694b0dc3f9a8bd78d0464c5554a1f47c9291 /runtime/doc/lua.txt | |
parent | ffd8cd1a96a96b09351a5ffde1068c3595443128 (diff) | |
download | rneovim-25fa051fa157ca4bce712e61602447a4222581ca.tar.gz rneovim-25fa051fa157ca4bce712e61602447a4222581ca.tar.bz2 rneovim-25fa051fa157ca4bce712e61602447a4222581ca.zip |
feat(vim.fs): improve normalize
- Add options argument with an option to expand env vars
- Resolve '//' -> '/'
- Use in vim.loader
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 58522ac1f3..33833fa83e 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2502,7 +2502,7 @@ find({names}, {opts}) *vim.fs.find()* (table) Normalized paths |vim.fs.normalize()| of all matching files or directories -normalize({path}) *vim.fs.normalize()* +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 backslash (\) characters are converted to forward slashes (/). Environment @@ -2522,6 +2522,9 @@ normalize({path}) *vim.fs.normalize()* Parameters: ~ • {path} (string) Path to normalize + • {opts} (table|nil) Options: + • expand_env: boolean Expand environment variables (default: + true) Return: ~ (string) Normalized path |