@@ -36,28 +36,28 @@ local IGNORED_PATHS = {
3636--- @param path string
3737--- @return boolean
3838local function is_folder_ignored (path )
39- for _ , folder in ipairs (IGNORED_PATHS ) do
40- if vim .startswith (path , folder ) then
41- return true
42- end
43- end
44-
45- if type (M .config .filesystem_watchers .ignore_dirs ) == " table" then
46- print (vim .inspect (M .config .filesystem_watchers .ignore_dirs ))
47- for _ , ignore_dir in ipairs (M .config .filesystem_watchers .ignore_dirs ) do
48- if utils .is_windows or true then
49- ignore_dir = ignore_dir :gsub (" /" , " \\\\ " ) or ignore_dir
50- end
51-
52- if vim .fn .match (path , ignore_dir ) ~= - 1 then
53- return true
54- end
55- end
56- elseif type (M .config .filesystem_watchers .ignore_dirs ) == " function" then
57- return M .config .filesystem_watchers .ignore_dirs (path )
58- end
59-
60- return false
39+ for _ , folder in ipairs (IGNORED_PATHS ) do
40+ if vim .startswith (path , folder ) then
41+ return true
42+ end
43+ end
44+
45+ if type (M .config .filesystem_watchers .ignore_dirs ) == " table" then
46+ print (vim .inspect (M .config .filesystem_watchers .ignore_dirs ))
47+ for _ , ignore_dir in ipairs (M .config .filesystem_watchers .ignore_dirs ) do
48+ if utils .is_windows or true then
49+ ignore_dir = ignore_dir :gsub (" /" , " \\\\ " ) or ignore_dir
50+ end
51+
52+ if vim .fn .match (path , ignore_dir ) ~= - 1 then
53+ return true
54+ end
55+ end
56+ elseif type (M .config .filesystem_watchers .ignore_dirs ) == " function" then
57+ return M .config .filesystem_watchers .ignore_dirs (path )
58+ end
59+
60+ return false
6161end
6262
6363--- @param node DirectoryNode
0 commit comments