nvim-session-manager: add GitSession autoload mode

Adds the missing autoload mode from the docs
https://github.com/Shatur/neovim-session-manager?tab=readme-ov-file#autoload-mode
This commit is contained in:
Tofixrs 2025-06-25 10:31:48 +02:00
commit 688d7df0e5
No known key found for this signature in database
GPG key ID: 89BC99F91C0D511E

View file

@ -77,7 +77,7 @@ in {
}; };
autoload_mode = mkOption { autoload_mode = mkOption {
type = either (enum ["Disabled" "CurrentDir" "LastSession"]) luaInline; type = either (enum ["Disabled" "CurrentDir" "LastSession" "GitSession"]) luaInline;
# Variable 'sm' is defined in the pluginRC of nvim-session-manager. The # Variable 'sm' is defined in the pluginRC of nvim-session-manager. The
# definition is as follows: `local sm = require('session_manager.config')` # definition is as follows: `local sm = require('session_manager.config')`
apply = val: apply = val:
@ -88,7 +88,7 @@ in {
description = '' description = ''
Define what to do when Neovim is started without arguments. Define what to do when Neovim is started without arguments.
Takes either one of `"Disabled"`, `"CurrentDir"`, `"LastSession` in which case the value Takes either one of `"Disabled"`, `"CurrentDir"`, `"LastSession"`, `"GitSession"` in which case the value
will be inserted into `sm.AutoloadMode.<value>`, or an inline Lua value. will be inserted into `sm.AutoloadMode.<value>`, or an inline Lua value.
''; '';
}; };