Skip to content

Commit

Permalink
feat(resession): add <Leader>SS to save current directory session
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Apr 1, 2024
1 parent 4d690ca commit 76018e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/astronvim/plugins/resession.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ return {
maps.n["<Leader>S"] = vim.tbl_get(opts, "_map_sections", "S")
maps.n["<Leader>Sl"] = { function() require("resession").load "Last Session" end, desc = "Load last session" }
maps.n["<Leader>Ss"] = { function() require("resession").save() end, desc = "Save this session" }
maps.n["<Leader>SS"] = {
function() require("resession").save(vim.fn.getcwd(), { dir = "dirsession" }) end,
desc = "Save this dirsession",
}
maps.n["<Leader>St"] = { function() require("resession").save_tab() end, desc = "Save this tab's session" }
maps.n["<Leader>Sd"] = { function() require("resession").delete() end, desc = "Delete a session" }
maps.n["<Leader>SD"] =
Expand Down

0 comments on commit 76018e9

Please sign in to comment.