add plugins
This commit is contained in:
parent
51548cf6bf
commit
5e258dca31
5 changed files with 87 additions and 39 deletions
|
|
@ -10,27 +10,27 @@ local M = {
|
|||
function M.config()
|
||||
require('persisted').setup({
|
||||
save_dir = vim.fn.expand(vim.fn.stdpath('data') .. '/sessions/'), -- directory where session files are saved: Resolves to ~/.local/share/lvim/sessions/
|
||||
silent = false, -- silent nvim message when sourcing session file
|
||||
use_git_branch = true, -- create session files based on the branch of the git enabled repository
|
||||
autosave = true, -- automatically save session files when exiting Neovim
|
||||
should_autosave = function() -- function to determine if a session should be autosaved
|
||||
silent = false, -- silent nvim message when sourcing session file
|
||||
use_git_branch = true, -- create session files based on the branch of the git enabled repository
|
||||
autosave = true, -- automatically save session files when exiting Neovim
|
||||
should_autosave = function() -- function to determine if a session should be autosaved
|
||||
-- do not autosave if the current filetype is ""(empty buffer), NvimTree or alpha
|
||||
if vim.bo.filetype == '' or vim.bo.filetype == 'NvimTree' or vim.bo.filetype == 'alpha' then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
autoload = true, -- automatically load the session for the cwd on Neovim startup
|
||||
autoload = true, -- automatically load the session for the cwd on Neovim startup
|
||||
on_autoload_no_session = function() -- function to run when `autoload = true` but there is no session to load
|
||||
end,
|
||||
follow_cwd = true, -- change session file name to match current working directory if it changes
|
||||
follow_cwd = true, -- change session file name to match current working directory if it changes
|
||||
allowed_dirs = {
|
||||
'~/Flexfiles',
|
||||
'~/projects',
|
||||
'~/work',
|
||||
}, -- table of dirs that the plugin will auto-save and auto-load from
|
||||
ignored_dirs = nil, -- table of dirs that are ignored when auto-saving and auto-loading
|
||||
telescope = { -- options for the telescope extension
|
||||
}, -- table of dirs that the plugin will auto-save and auto-load from
|
||||
ignored_dirs = nil, -- table of dirs that are ignored when auto-saving and auto-loading
|
||||
telescope = { -- options for the telescope extension
|
||||
reset_prompt_after_deletion = true, -- whether to reset prompt after session deleted
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue