[Bug]: Telescope extension doesn't work after neovim update
ales-tsurko opened this issue · 4 comments
ales-tsurko commented
Your Persisted.nvim config
vim.opt.sessionoptions = { -- required
"buffers",
"curdir",
"folds",
"globals",
"resize",
"tabpages",
"winsize",
}
require("persisted").setup({
follow_cwd = false, -- change session file name to match current working directory if it changes
})
require("telescope").load_extension("persisted")
-- define a command to close sesssion
function SessionClose()
cmd[[SessionStop]]
cmd[[%bd!]]
cmd[[cd]]
end
cmd[[command! -nargs=0 SessionClose lua SessionClose()]]
-- auto save/load scope
require("scope").setup({})
local group = vim.api.nvim_create_augroup("PersistedHooks", {})
vim.api.nvim_create_autocmd({ "User" }, {
pattern = "PersistedSavePost",
group = group,
callback = function()
cmd[[ScopeSaveState]]
end,
})
vim.api.nvim_create_autocmd({ "User" }, {
pattern = "PersistedLoadPost",
group = group,
callback = function()
cmd[[ScopeLoadState]]
cmd[[e]]
end,
})
Error messages
Error executing Lua callback: ...share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:347: Invalid 'event': 'User TelescopeFindPre'
stack traceback:
[C]: in function 'nvim_exec_autocmds'
...share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:347: in function 'find'
...y/persisted.nvim/lua/telescope/_extensions/persisted.lua:40: in function <...y/persisted.nvim/lua/telescope/_extensions/persisted.lua:11>
...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:253: in function 'load_command'
...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>
Describe the bug
Calling :Telescope persisted
produces an error mentioned above. Previously worked fine, but started to happen after neovim update.
Reproduce the bug
No response
Final checks
- I have made sure this issue exists in the latest version of the plugin
- I have tested with the
minimal.lua
config file above and still get the issue - I have used
SessionSave
to save the session before restarting Neovim and usingSessionLoad
- I have made sure this is not a duplicate issue
olimorris commented
Can you create a minimal.lua file for me to test please?
ales-tsurko commented
Looks like it's actually an issue with Telescope
olimorris commented
Are you on Neovim 0.10?
ales-tsurko commented
0.9.4
I had 0.1.1 tag specified in my config for Telescope. Switching it to branch 0.1.*
fixed the issue.