nvim: plugins: Drop vim-workspace and use auto-session

This commit is contained in:
Sanchayan Maity 2022-01-25 10:17:33 +05:30
parent 73dd1939bd
commit 93c92ad067
3 changed files with 14 additions and 6 deletions

View file

@ -0,0 +1,13 @@
local opts = {
log_level = 'error',
auto_session_enable_last_session = false,
auto_session_root_dir = vim.fn.expand('~/.vim/session/'),
auto_session_enabled = true,
auto_session_create_enabled = false,
auto_save_enabled = true,
auto_restore_enabled = true,
auto_session_suppress_dirs = nil,
auto_session_allowed_dirs = nil,
}
require('auto-session').setup(opts)

View file

@ -1,5 +0,0 @@
vim.g.workspace_session_directory = vim.fn.expand('~/.vim/session/')
vim.g.workspace_undodir = vim.fn.expand('~/.vim/undodir')
vim.g.workspace_autosave = 0
vim.g.workspace_autosave_ignore = {'gitcommit', 'qf', 'tagbar'}
vim.g.workspace_session_disable_on_args = 1

View file

@ -14,7 +14,7 @@ local init = function ()
use 'junegunn/fzf.vim'
use 'bronson/vim-visual-star-search'
-- Manage Project sessions
use 'thaerkh/vim-workspace'
use 'rmagatti/auto-session'
-- Snippets
use {
'L3MON4D3/LuaSnip',