summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
blob: 3718b82d4afa055f05d9231e0dc8ecdd85a31516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
return {
  "auto-session",
  lazy = false,
  after = function()
    require("auto-session").setup {
      auto_create = false,
      auto_restore = true,
      legacy_cmds = false,

      -- cwd_change_handling = true,
      -- pre_cwd_changed_cmds = {
      --   "wa",
      --   "silent %bw!",
      --   "clearjumps",
      --   "lua MiniClue.ensure_buf_triggers()",
      -- },

      git_use_branch_name = true,
      git_auto_restore_on_branch_change = true,
      suppressed_dirs = {
        "~/",
        "~/Sync",
      },
    }
  end
}