TelescopePreviewerLoaded Error executing vim.schedule lua callback · Issue #12 · jhofscheier/ltex-utils.nvim · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When actions-preview.nvim is installed and the user calls require("actions-preview").code_actions(), it triggers TelescopePreviewerLoaded autocmd, but with a nil args.data.bufname. This causes an error when args.data.bufname is parsed.
Error message:
Error executing vim.schedule lua callback: ...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:460: User Autocommands for "TelescopePreviewerLoaded": Vim(append):Error executing lua callback: .../share/nvim/lazy/ltex-utils.nvim/lua/ltex-utils/init.lua:66: attempt to index field 'bufname' (a nil value)
stack traceback:
.../share/nvim/lazy/ltex-utils.nvim/lua/ltex-utils/init.lua:66: in function <.../share/nvim/lazy/ltex-utils.nvim/lua/ltex-utils/init.lua:64>
[C]: in function 'nvim_exec_autocmds'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:461: in function <...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:460>
[C]: in function 'nvim_buf_call'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:460: in function <...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:454>
When
actions-preview.nvim
is installed and the user callsrequire("actions-preview").code_actions()
, it triggersTelescopePreviewerLoaded
autocmd, but with a nilargs.data.bufname
. This causes an error whenargs.data.bufname
is parsed.Error message:
Fixed in PR #3.
The text was updated successfully, but these errors were encountered: