summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/auto-session.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/auto-session.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/auto-session.lua b/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
index deedd9a..f352cad 100644
--- a/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
@@ -4,7 +4,19 @@ return {
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 = {
"~/",
},