sessions and nvim tree
This commit is contained in:
parent
b542af2f39
commit
78f04bda73
12 changed files with 239 additions and 12 deletions
19
lua/plugins/session.lua
Normal file
19
lua/plugins/session.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"rmagatti/auto-session",
|
||||
lazy = false,
|
||||
init = function()
|
||||
vim.o.sessionoptions = "blank,buffers,curdir,folds,tabpages,winsize,winpos,terminal,localoptions"
|
||||
end,
|
||||
opts = {
|
||||
auto_session_use_git_branch = true,
|
||||
auto_session_suppress_dirs = { "~/", "sessions", "~/Downloads", "/" },
|
||||
post_cwd_changed_hook = function()
|
||||
U.safeRequire("lualine", function(ll)
|
||||
ll.refresh() -- refresh lualine so the new session name is displayed in the status bar
|
||||
end)
|
||||
end,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("auto-session").setup(opts)
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue