Skip to content

Commit

Permalink
fix: schedule loading session from telescope
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Feb 23, 2023
1 parent c738fd3 commit e594ede
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lua/telescope/_extensions/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ end
M.load_session = function(session, config)
vim.api.nvim_exec_autocmds("User", { pattern = "PersistedTelescopeLoadPre" })

-- TODO: clean up this function call after deprecation notice ends
utils.load_session(
session.file_path,
config.telescope.before_source and config.telescope.before_source(session) or _,
config.telescope.after_source and config.telescope.after_source(session) or _,
config.silent
)
--
vim.schedule(function()
-- TODO: clean up this function call after deprecation notice ends
utils.load_session(
session.file_path,
config.telescope.before_source and config.telescope.before_source(session) or _,
config.telescope.after_source and config.telescope.after_source(session) or _,
config.silent
--
)
end)

vim.api.nvim_exec_autocmds("User", { pattern = "PersistedTelescopeLoadPost" })
end
Expand Down

0 comments on commit e594ede

Please sign in to comment.