symbols-outline.nvim icon indicating copy to clipboard operation
symbols-outline.nvim copied to clipboard

How to restore symbols-outline state on session restore?

Open alloc33 opened this issue 3 years ago • 1 comments

I use auto-session plugin to manage my sessions. How can I restore the state of symbols-outline with it? Currently it restores empty buffer. Maybe there are some settings or maybe another session plugin which would work with symbols-outline in this case?

alloc33 avatar Feb 24 '23 17:02 alloc33

If you use nvim-possession you can pass a callback to the post_hook argument to restore states of additional buffers, for instance in this case the symbols outline.

However, this works with lua callbacks only, and as far as I know this plugin doesn't expose the corresponding require("symbols-outline").toggle/open() method or such (if it did, you could just pass it to the post_hook callback).

gennaro-tedesco avatar Apr 15 '23 23:04 gennaro-tedesco