aboutsummaryrefslogtreecommitdiff
path: root/lua/user/session-manager.lua
blob: c23b72128e8a96dbf8c8653ccab52380b77cd29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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,
})

vim.cmd('autocmd User SessionLoadPost lua require"nvim-tree".toggle(false, true)')