From 173b21ba0585fc105c79c99244d43d7a34ee563e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 9 Apr 2022 14:51:10 +0200 Subject: [PATCH] tmux: Restore {,neo}vim sessions with `obsession` Restore {,neo}vim sessions with the help of [tpope/vim-obsession][1] [1]: https://github.com/tpope/vim-obsession --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index a51791c..bf5f864 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -89,6 +89,10 @@ set -g @resurrect-restore 'C-s' set -g @continuum-save-interval '5' # Last saved environment is automatically restored when tmux is started. set -g @continuum-restore 'on' +# Restore {,neo}vim sessions with the help of vim-obsession +# https://github.com/tpope/vim-obsession +set -g @resurrect-strategy-vim 'session' +set -g @resurrect-strategy-nvim 'session' ## Theming (inspired by https://github.com/Who23/dots/blob/21976e76644d8d9261ebdcf61733d2181a1612eb/tmux.conf) set -g status-bg black