Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add support for folke/persistence.nvim plugin #534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gelocraft
Copy link

@gelocraft gelocraft commented Jan 31, 2025

This PR add support for folke/persistence.nvim as an alternative for tpope/vim-obsession for neovim.

As a neovim user myself, I love folke's work and only want folke's plugins when possible.

And for people who loves or use tpope/vim-obsession and can't get it to work with tmux-ressurect just add this on your config.

return {
	'tpope/vim-obsession',
	enabled = true,
	event = 'VimEnter',
	init = function()
		vim.api.nvim_create_autocmd('VimLeave', {
			pattern = '*',
			group = vim.api.nvim_create_augroup('Obsession', { clear = true }),
			callback = function() vim.cmd 'Obsession' end,
		})
	end,
}

This config that I pasted will only work if you are using folke/lazy.nvim as your plugin manager, and if not I don't know what to tell you but may god have mercy on you.

Closes #470

@gelocraft gelocraft force-pushed the feat-add-support-persistence-nvim branch from bb21f4d to b86da8e Compare January 31, 2025 08:09
@gelocraft
Copy link
Author

@bruno- can u merge this feature for us (neovim users). we would really appreciate if u do so, thanks.

@me-nkr
Copy link

me-nkr commented Feb 6, 2025

@gelocraft I do not think this should close #470, otherwise good work, let's hope this gets merged soon 🤞🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Neovim sessions not automatically restored upon prefix + Ctrl-r
2 participants