From da2ae5f98aadc5f5bd3498854db9efd75fa1b6ab Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 3 Dec 2025 09:48:00 -0500 Subject: neovim: many changes --- pkgs/custom-neovim/config/lua/plugins/auto-session.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pkgs/custom-neovim/config/lua/plugins/auto-session.lua') 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 = { "~/", }, -- cgit v1.2.3