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
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 sesssionfunctionSessionClose()
cmd[[SessionStop]]cmd[[%bd!]]cmd[[cd]]endcmd[[command! -nargs=0 SessionClose lua SessionClose()]]-- auto save/load scoperequire("scope").setup({})
localgroup=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 using SessionLoad
I have made sure this is not a duplicate issue
The text was updated successfully, but these errors were encountered:
Your Persisted.nvim config
Error messages
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
minimal.lua
config file above and still get the issueSessionSave
to save the session before restarting Neovim and usingSessionLoad
The text was updated successfully, but these errors were encountered: