Skip to content

Commit 10c6062

Browse files
committed
fix: does the close_preview function really works ?
1 parent aac28a7 commit 10c6062

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/float-preview.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ function FloatPreview:attach(bufnr)
332332
vim.keymap.set("n", key, function()
333333
local _, node = pcall(get_node)
334334
if self.path ~= nil and self.path == node.path then
335-
self.close_preview(self)
335+
-- self.close_preview(self)
336+
self:_close "toggle preview"
336337
return
337338
end
338339

0 commit comments

Comments
 (0)