Skip to content

Commit 8e518e3

Browse files
committed
fix: style
1 parent 3ea906a commit 8e518e3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lua/nvim-tree.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ local function setup_autocommands(opts)
213213
if not explorer then
214214
return
215215
end
216-
if (explorer.filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none") and vim.bo[data.buf].buftype == "" then
216+
if
217+
(explorer.filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none") and vim.bo[data.buf].buftype == ""
218+
then
217219
utils.debounce("Buf:filter_buffer", opts.view.debounce_delay, function()
218220
actions.reloaders.reload_explorer()
219221
end)
@@ -228,7 +230,9 @@ local function setup_autocommands(opts)
228230
if not explorer then
229231
return
230232
end
231-
if (explorer.filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none") and vim.bo[data.buf].buftype == "" then
233+
if
234+
(explorer.filters.config.filter_no_buffer or renderer.config.highlight_opened_files ~= "none") and vim.bo[data.buf].buftype == ""
235+
then
232236
utils.debounce("Buf:filter_buffer", opts.view.debounce_delay, function()
233237
actions.reloaders.reload_explorer()
234238
end)

lua/nvim-tree/explorer/explore.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ end
5656

5757
---@param node Node
5858
---@param status table
59+
---@param parent Explorer
5960
---@return Node[]|nil
6061
function M.explore(node, status, parent)
6162
local cwd = node.link_to or node.absolute_path

lua/nvim-tree/explorer/filters.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Filters:new(opts, explorer)
1717
filter_git_clean = opts.filters.git_clean,
1818
filter_no_buffer = opts.filters.no_buffer,
1919
filter_no_bookmark = opts.filters.no_bookmark,
20-
}
20+
},
2121
}
2222

2323
local custom_filter = opts.filters.custom

0 commit comments

Comments
 (0)