We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9044b9 commit 09d513eCopy full SHA for 09d513e
lua/float-preview.lua
@@ -333,8 +333,11 @@ function FloatPreview:attach(bufnr)
333
table.insert(
334
au,
335
vim.api.nvim_create_autocmd("BufDelete", {
336
+ group = preview_au,
337
callback = function()
- vim.api.nvim_del_user_command "TogglePreviewFile"
338
+ if vim.fn.exists ":TogglePreviewFile" > 0 then
339
+ vim.api.nvim_del_user_command "TogglePreviewFile"
340
+ end
341
end,
342
})
343
)
0 commit comments