Skip to content

Commit 1cc4556

Browse files
committed
chore: indenting explorer/watch
1 parent e1083b8 commit 1cc4556

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

lua/nvim-tree/explorer/watch.lua

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ local IGNORED_PATHS = {
3636
---@param path string
3737
---@return boolean
3838
local 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
6161
end
6262

6363
---@param node DirectoryNode

0 commit comments

Comments
 (0)