Skip to content

Febri-i/resurrect.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

resurrect with workpaces.nvim
my tailwind language server hogging the cpu usage

Resurrect your neovim session

Yet another session plugin? not really this plugin doesnt use mksession and didnt actually save your "session" its just list all the files that you opened, sort it according to last modified time then save it for you to resurrect them later.

Why?

mksession sucks. It saves everything, including Nvim-Tree too.

Setup

Just install it with whatever your plugin manager is, example for lazy.nvim

{
    'Febri-i/resurrect.nvim'
}

Config

Using setup function

require("resurrect").setup({
    session_dir = "<put your session directory her, default = ~/.vimsession/>",
    auto_wipeout = true -- automatically do :bufdo bwipeout before loading session
})

Or

vim.g.ResurrectSessionDir = "<session dir, default = ~/.Vimsession/>"
vim.g.ResurrectAutoWipeout = true

Usage

Combine it whatever you want the api is simple.

require("resurrect").save("session_name_here")
require("resurrect").load("session_name_here")

Todo

Im still wrestling with neovim api

  • Add split window support.
  • Add multiple tabs support. (do anyone actually use tabs?)
  • Add code documentation.

About

Replacement for mksession, written in lua

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages