diff options
author | Raphael <glepnir@neovim.pro> | 2023-07-10 19:38:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 04:38:15 -0700 |
commit | 766f4978d6cb146511cf0b676c01e5327db46647 (patch) | |
tree | 84fddf19619077a9e8fcf8bab33dbedbe08d0fad /runtime/lua/vim/fs.lua | |
parent | fbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62 (diff) | |
download | rneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.gz rneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.bz2 rneovim-766f4978d6cb146511cf0b676c01e5327db46647.zip |
fix(lint): lint warnings #24226
Diffstat (limited to 'runtime/lua/vim/fs.lua')
-rw-r--r-- | runtime/lua/vim/fs.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua index cdb314fa3d..48d76e5d7e 100644 --- a/runtime/lua/vim/fs.lua +++ b/runtime/lua/vim/fs.lua @@ -20,7 +20,7 @@ local iswin = vim.uv.os_uname().sysname == 'Windows_NT' --- </pre> --- ---@param start (string) Initial file or directory. ----@return (function) Iterator +---@return function Iterator function M.parents(start) return function(_, dir) local parent = M.dirname(dir) @@ -37,7 +37,7 @@ end --- Return the parent directory of the given file or directory --- ---@param file (string) File or directory ----@return (string) Parent directory of {file} +---@return string|nil Parent directory of {file} function M.dirname(file) if file == nil then return nil @@ -59,8 +59,8 @@ end --- Return the basename of the given file or directory --- ----@param file (string) File or directory ----@return (string) Basename of {file} +---@param file string File or directory +---@return string|nil Basename of {file} function M.basename(file) if file == nil then return nil |