nvim: added autosession plugin

This commit is contained in:
PowerUser64 2021-09-07 17:59:31 -07:00
parent bd34387c57
commit e852fd492a
3 changed files with 21 additions and 1 deletions

View file

@ -83,6 +83,20 @@ M.toggleterm = function()
end
-- <<<
M.autosession = function() -- Automatic session loading and saving >>>
local opts = {
log_level = 'info',
auto_session_enable_last_session = true,
auto_session_root_dir = vim.fn.stdpath('data').."/sessions/",
auto_session_enabled = true,
auto_save_enabled = false,
auto_restore_enabled = true,
auto_session_suppress_dirs = nil
}
require('auto-session').setup(opts)
end
-- <<<
return M
-- vim:fdm=marker:fmr=>>>,<<<:expandtab:tabstop=3:sw=3

View file

@ -129,6 +129,12 @@ return require('packer').startup(function()
-- require("core.utils").packer_lazy_load "neoscroll.nvim"
-- end,
}
use { -- automatic session management
'rmagatti/auto-session',
config = function()
require('other').autosession()
end
}
-- Conveniences
use { -- Undo tree

View file

@ -62,7 +62,7 @@ autocmd FileType help setlocal nospell
" even more test whitespace ->
" Key bindings
let mapleader = " "
" let mapleader = " "
" *sigh*...
command! Q q
command! W w