vim.fs.parents() is a Lua iterator that returns the next parent directory of the given file or directory on each iteration.