blob: 97834f7906cd5ee482b91c0076d24f5c885e888d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
;; Session manager.
(module config.auto-session {autoload {util config.util}})
(def- auto-opts {:log_level :info
:auto_session_enable_last_session false
:auto_session_root_dir (.. (vim.fn.stdpath :data) :/sessions/)
:auto_session_enabled true
:auto_save_enabled nil
:auto_restore_enabled nil
:auto_session_suppress_dirs [(os.getenv :HOME)]
:auto_session_use_git_branch nil
:bypass_session_save_file_types [:alpha]})
(set vim.o.sessionoptions
"blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal")
(util.setup :auto-session auto-opts)
|