chore: resolve undefined-field

This commit is contained in:
Alexander Courtis
2024-10-25 19:32:57 +11:00
parent 1e188927c5
commit 2a98d56c3e
3 changed files with 96 additions and 75 deletions

View File

@@ -58,10 +58,11 @@ function M.get_toplevel(cwd)
return toplevel, git_dir
end
---@type table<string, boolean>
local untracked = {}
---@param cwd string
---@return string|nil
---@return boolean
function M.should_show_untracked(cwd)
if untracked[cwd] ~= nil then
return untracked[cwd]