summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/lua/plugins/session_manager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins/session_manager.lua')
-rw-r--r--nvim/lua/plugins/session_manager.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/nvim/lua/plugins/session_manager.lua b/nvim/lua/plugins/session_manager.lua
new file mode 100644
index 0000000..736e69a
--- /dev/null
+++ b/nvim/lua/plugins/session_manager.lua
@@ -0,0 +1,25 @@
+local status_ok, session_manager = pcall(require, "session_manager")
+if not status_ok then
+ return
+end
+
+local status_ok, config = pcall(require, "session_manager.config")
+if not status_ok then
+ return
+end
+
+-- local Path = require('plenary.path')
+session_manager.setup({
+ autoload_mode = config.AutoloadMode.CurrentDir, -- Define what to do when Neovim is started without arguments. Possible values: Disabled, CurrentDir, LastSession
+ autosave_last_session = false, -- Automatically save last session on exit.
+})
+
+local tele_status_ok, telescope = pcall(require, "telescope")
+if not tele_status_ok then
+ return
+end
+
+local tele_session_status_ok, telescope = pcall(telescope.load_extension, "sessions")
+if not tele_session_status_ok then
+ return
+end \ No newline at end of file