Skip to content

Commit

Permalink
persisted: telescope 를 통해서 세션을 띄울때 세션 저장
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Oct 25, 2023
1 parent 8536cd6 commit a2bd474
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/custom/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,15 @@ M.persisted = {
n = {
["<F2>"] = {
function ()
return vim.cmd(":Telescope persisted")
if not package.loaded['persisted'] then
return vim.notify('plugin:persisted is not loaded', vim.log.levels.WARN)
end

return vim.cmd([[
:SessionSave
:Telescope persisted]])
end,
"Select session :persisted"
"SessionSave + Select session :persisted"
},
}
}
Expand Down

0 comments on commit a2bd474

Please sign in to comment.