summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/lua/plugins/session_manager.lua
blob: 736e69a40b92ef67aa7c7ae679011e647355a478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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