aboutsummaryrefslogtreecommitdiff
path: root/lua/user/session-manager.lua
blob: 101f87305d9803d57fd735b23b05502ed52ae6cf (plain)
1
2
3
4
5
6
7
8
9
10
11
local status_ok, session_manager = pcall(require, "session_manager")
if not status_ok then
  return
end

local Path = require('plenary.path')
session_manager.setup({
  sessions_dir = Path:new(vim.fn.stdpath('data'), '.sessions'),
  autoload_mode = require("session_manager.config").AutoloadMode.Disabled,
  autosave_only_in_session = true,	-- I don't like that a session is created for every opened dir
})