Skip to content

Commit 392a54c

Browse files
committed
fix: missing autocommand group for deletion
1 parent d9044b9 commit 392a54c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/float-preview.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ function FloatPreview:attach(bufnr)
333333
table.insert(
334334
au,
335335
vim.api.nvim_create_autocmd("BufDelete", {
336+
group = "float_preview_au",
336337
callback = function()
337338
vim.api.nvim_del_user_command "TogglePreviewFile"
338339
end,

0 commit comments

Comments
 (0)