File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Restoring vim and neovim sessions
2
2
3
+ ## ` persistence.nvim ` strategy
4
+ - when using [ persistence.nvim] ( https://github.com/folke/persistence.nvim ) by Folke, tmux-resurrect will call on it to load sessions if they exist
5
+ - in ` .tmux.conf ` or ` .config/tmux/tmux.conf ` :
6
+
7
+ ``` sh
8
+ set -g @resurrect-strategy-nvim ' persistence'
9
+ ```
10
+ # # native session strategy
3
11
- save vim/neovim sessions. I recommend
4
12
[tpope/vim-obsession](https://github.com/tpope/vim-obsession) (as almost every
5
13
plugin, it works for both vim and neovim).
6
- - in ` .tmux.conf ` :
7
-
8
- # for vim
9
- set -g @resurrect-strategy-vim 'session'
10
- # for neovim
11
- set -g @resurrect-strategy-nvim 'session'
12
-
14
+ - in ` .tmux.conf` or ` .config/tmux/tmux.conf` :
15
+
16
+ ` ` ` sh
17
+ # for vim
18
+ set -g @resurrect-strategy-vim ' session'
19
+ # for neovim
20
+ set -g @resurrect-strategy-nvim ' session'
21
+ ` ` `
13
22
` tmux-resurrect` will now restore vim and neovim sessions if ` Session.vim` file
14
23
is present.
15
24
You can’t perform that action at this time.
0 commit comments