Skip to content

Commit d7504b3

Browse files
committed
fix: style
1 parent a634a1b commit d7504b3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lua/nvim-tree/explorer/live-filter.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,15 @@ local function configure_buffer_overlay(self)
117117
overlay_bufnr = vim.api.nvim_create_buf(false, true)
118118

119119
vim.api.nvim_buf_attach(overlay_bufnr, true, {
120-
on_lines = function() return record_char(self) end,
120+
on_lines = function()
121+
return record_char(self)
122+
end,
121123
})
122124

123125
vim.api.nvim_create_autocmd("InsertLeave", {
124-
callback = function() return remove_overlay(self) end,
126+
callback = function()
127+
return remove_overlay(self)
128+
end,
125129
once = true,
126130
})
127131

@@ -180,7 +184,9 @@ function LiveFilter:start_filtering()
180184
local col = #self.prefix > 0 and #self.prefix - 1 or 1
181185
view.set_cursor { row, col }
182186
-- needs scheduling to let the cursor move before initializing the window
183-
vim.schedule(function() return create_overlay(self) end)
187+
vim.schedule(function()
188+
return create_overlay(self)
189+
end)
184190
end
185191

186192
function LiveFilter:clear_filter()

0 commit comments

Comments
 (0)