fix nvim restore

This commit is contained in:
Yan Lin 2026-01-13 14:32:30 +01:00
parent e7af265892
commit 9926e8298f
2 changed files with 3 additions and 0 deletions

View file

@ -180,6 +180,8 @@
};
};
};
auto-session.enable = true;
};
# Extra plugins that don't have dedicated modules

View file

@ -15,6 +15,7 @@
extraConfig = ''
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-processes 'nvim lazygit claude ssh'
set -g @resurrect-hook-post-save-all 'target=$(readlink -f ~/.tmux/resurrect/last); sed -i "" "s|/nix/store/[^/]*/bin/nvim --cmd .*|nvim|g" "$target"'
'';
}
{