We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10c6062 commit 8305950Copy full SHA for 8305950
1 file changed
lua/float-preview.lua
@@ -302,9 +302,6 @@ function FloatPreview:close_preview()
302
return
303
end
304
305
- if node.absolute_path == self.path then
306
- return
307
- end
308
self:_close "cursor moved"
309
310
@@ -332,8 +329,7 @@ function FloatPreview:attach(bufnr)
332
329
vim.keymap.set("n", key, function()
333
330
local _, node = pcall(get_node)
334
331
if self.path ~= nil and self.path == node.path then
335
- -- self.close_preview(self)
336
- self:_close "toggle preview"
+ self.close_preview(self)
337
338
339
0 commit comments