mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Complete refactor + moved to [lsp-zero](https://github.com/VonHeikemen/lsp-zero.nvim)
This commit is contained in:
11
lua/plugins/persistence.lua
Normal file
11
lua/plugins/persistence.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
{
|
||||
"folke/persistence.nvim",
|
||||
event = "BufReadPre", -- this will only start session saving when an actual file was opened
|
||||
opts = {
|
||||
dir = vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/"), -- directory where session files are saved
|
||||
options = { "buffers", "curdir", "tabpages", "winsize" }, -- sessionoptions used for saving
|
||||
pre_save = nil, -- a function to call before saving the session
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user