Hajime-Suzuki / vuffers.nvim

a neovim plugin that creates a vertical split window to help you manage and navigate your buffers more efficiently
47 stars 1 forks source link

[QUESTION] Interoperability with Vim-Obsession? #35

Closed TheCedarPrince closed 1 year ago

TheCedarPrince commented 1 year ago

Hi @Hajime-Suzuki ,

Do you happen to know if vuffers can be used alongside vim-obsession? I use it to track and restore sessions with vim and was curious if we could somehow use this alongside vuffers.

Thanks!

~ tcp :deciduous_tree:

Hajime-Suzuki commented 1 year ago

I use neovim-session-manager and I haven't used vim-obsession, but it should work.

If you use custom display names, please run on_session_loaded function when a session is loaded:

vim.api.nvim_create_autocmd("SessionLoadPost", {
    callback = function()
        require("vuffers").on_session_loaded()
    end,
})

Without it, your custom display names are not restored.

Does vim-obsession restore sessions? By quickly reading its readme I didn't see that.

TheCedarPrince commented 1 year ago

Ah I see -- Vim-Obsession actually just tracks sessions to a file consistently. Doesn't really help with session reloading. But the above should work actually for my use case; was a little bit confused. Thanks!