fix gitignore feature (#264)

This commit is contained in:
peach lasagna
2021-04-01 02:37:29 +07:00
committed by GitHub
parent d19a6feb24
commit 1f1b25de4b
4 changed files with 8 additions and 13 deletions

View File

@@ -30,8 +30,8 @@ local function update_root_status(root)
end
end
function M.get_path_gitexclude()
return vim.fn.system("git config --get core.excludesFile")
function M.get_gitexclude()
return vim.fn.system("git ls-files --others --ignored --exclude-standard --directory")
end
function M.reload_roots()