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
-- vim.fn.chdir(item.dir)
-- M.load()
vim.print("selected")
vim.print(item.session)
end
end)
end

View File

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