my tailwind language server hogging the cpu usage |
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.
mksession sucks. It saves everything, including Nvim-Tree too.
Just install it with whatever your plugin manager is, example for lazy.nvim
{
'Febri-i/resurrect.nvim'
}
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
Combine it whatever you want the api is simple.
require("resurrect").save("session_name_here")
require("resurrect").load("session_name_here")
Im still wrestling with neovim api
- Add split window support.
- Add multiple tabs support. (do anyone actually use tabs?)
- Add code documentation.