File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,15 @@ local function configure_buffer_overlay(self)
117
117
overlay_bufnr = vim .api .nvim_create_buf (false , true )
118
118
119
119
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 ,
121
123
})
122
124
123
125
vim .api .nvim_create_autocmd (" InsertLeave" , {
124
- callback = function () return remove_overlay (self ) end ,
126
+ callback = function ()
127
+ return remove_overlay (self )
128
+ end ,
125
129
once = true ,
126
130
})
127
131
@@ -180,7 +184,9 @@ function LiveFilter:start_filtering()
180
184
local col = # self .prefix > 0 and # self .prefix - 1 or 1
181
185
view .set_cursor { row , col }
182
186
-- 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 )
184
190
end
185
191
186
192
function LiveFilter :clear_filter ()
You can’t perform that action at this time.
0 commit comments