fix: TelescopePreviewerLoaded (#2005)
This commit is contained in:
@@ -385,9 +385,13 @@ previewers.new_buffer_previewer = function(opts)
|
||||
|
||||
opts.define_preview(self, entry, status)
|
||||
|
||||
putils.with_preview_window(status, nil, function()
|
||||
vim.schedule(function()
|
||||
if vim.api.nvim_buf_is_valid(self.state.bufnr) then
|
||||
vim.api.nvim_buf_call(self.state.bufnr, function()
|
||||
vim.cmd "do User TelescopePreviewerLoaded"
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
if opts.get_buffer_by_name then
|
||||
set_bufname(self, opts.get_buffer_by_name(self, entry))
|
||||
|
||||
Reference in New Issue
Block a user