diff options
author | Gregory Anders <greg@gpanders.com> | 2022-05-15 19:55:18 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2022-05-31 13:04:41 -0600 |
commit | b740709431f5e68dac5238d455f9f86d5a564f36 (patch) | |
tree | 0df53aec490c87343dd7b15addf46f2c694d08c7 /runtime/doc/lua.txt | |
parent | c5526a27c3b61acb33b7c3c3fe518d8f1e0b602f (diff) | |
download | rneovim-b740709431f5e68dac5238d455f9f86d5a564f36.tar.gz rneovim-b740709431f5e68dac5238d455f9f86d5a564f36.tar.bz2 rneovim-b740709431f5e68dac5238d455f9f86d5a564f36.zip |
feat(fs): add vim.fs.basename()
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index cf6d2e7276..bf30700fc0 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2151,6 +2151,15 @@ set({mode}, {lhs}, {rhs}, {opts}) *vim.keymap.set()* ============================================================================== Lua module: fs *lua-fs* +basename({file}) *vim.fs.basename()* + Return the basename of the given file or directory + + Parameters: ~ + {file} (string) File or directory + + Return: ~ + (string) Basename of {file} + dirname({file}) *vim.fs.dirname()* Return the parent directory of the given file or directory |