Bryan 2024-11-08 03:00:53 -06:00
parent c499fcebb4
commit b8e349c4b2
2 changed files with 6 additions and 4 deletions

View File

@ -195,7 +195,7 @@ function M.select()
if item then if item then
-- vim.fn.chdir(item.dir) -- vim.fn.chdir(item.dir)
-- M.load() -- M.load()
vim.print("selected") vim.print(item.session)
end end
end) end)
end end

View File

@ -8,9 +8,11 @@ local M = {}
---Fire an event ---Fire an event
---@param event string ---@param event string
local function fire(event) -- local function fire(event)
vim.api.nvim_exec_autocmds("User", { pattern = "Persisted" .. event }) -- vim.api.nvim_exec_autocmds("User", { pattern = "Persisted" .. event })
end -- end
local fire = persisted.fire
---Get the selected session from Telescope ---Get the selected session from Telescope
---@return table ---@return table