You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`load_session`| Select and load session. (Your current session won't appear on the list). |
18
+
|`load_last_session`|Removes all buffers and tries to `:source` the last saved session. Returns `true` if the session was restored and `false` otherwise.|
19
+
|`load_current_dir_session`|Removes all buffers and tries to `:source` the last saved session file of the current directory. Returns `true` if the session was restored and `false` otherwise.|
20
+
|`save_current_session`| Works like `:mksession`, but saves/creates current directory as a session in `sessions_dir`. |
21
+
|`delete_session`| Select and delete session. |
22
+
|`delete_current_dir_session`| Deletes the session associated with the current directory.|
23
23
24
24
When `!` is specified, the modified buffers will not be saved.
sessions_dir=Path:new(vim.fn.stdpath('data'), 'sessions'), -- The directory where the session files will be saved.
37
37
session_filename_to_dir=session_filename_to_dir, -- Function that replaces symbols into separators and colons to transform filename into a session directory.
38
38
dir_to_session_filename=dir_to_session_filename, -- Function that replaces separators and colons into special symbols to transform session directory into a filename. Should use `vim.uv.cwd()` if the passed `dir` is `nil`.
39
-
autoload_mode=config.AutoloadMode.LastSession, -- Define what to do when Neovim is started without arguments. Possible values: Disabled, CurrentDir, LastSession
39
+
autoload_mode=config.AutoloadMode.LastSession, -- Define what to do when Neovim is started without arguments. See "Autoload mode" section below.
40
40
autosave_last_session=true, -- Automatically save last session on exit and on session switch.
41
41
autosave_ignore_not_normal=true, -- Plugin will not save a session when no buffers are opened, or all of them aren't writable or listed.
42
42
autosave_ignore_dirs= {}, -- A list of directories where the session will not be autosaved.
If Neovim is started without arguments the value of the autoload_mode option is used to determine which session to initially load. The following modes are supported:
0 commit comments