alpha-nvim icon indicating copy to clipboard operation
alpha-nvim copied to clipboard

Sessions help

Open kalvinpearce opened this issue 2 years ago • 7 comments

I am trying to move over to this plugin from startify but having trouble getting sessions to work. This bit of the readme leads me to think sessions should show up somehow but I am not able to see them using either of the themes. Sorry if I missed something but just a bit confused 🙏

kalvinpearce avatar Nov 10 '21 13:11 kalvinpearce

no, i haven't made any gui for sessions yet. i'm missing feature parity with startify simply because i never used some of the features :p i can look into it the next time i get the time/motivation to work on this plugin, if you want to submit a pr it shouldn't be too difficult tbh

goolord avatar Nov 18 '21 05:11 goolord

What's the intent behind mentioning sessions (and neovim-session-manager) in the README though? I found that confusing as well. Are they supported in some capacity?

adrian5 avatar Dec 09 '21 23:12 adrian5

because some people on reddit mentioned that they use startify for session management https://github.com/mhinz/vim-startify/blob/master/doc/startify.txt#L81-L92

i didn't even know that they would appear on the startify screen until this issue was opened

goolord avatar Dec 09 '21 23:12 goolord

Ah I see. Yeah, would be nice if the startify-like session listing could be implemented in the future.

adrian5 avatar Dec 09 '21 23:12 adrian5

can i prevent alpha from launching if a neovim-session-manager session exists?

bennypowers avatar Mar 08 '22 15:03 bennypowers

in my experience having the sessions autoload will already do this, but I can add a configuration option to remove the VimEnter autocmd for creating an alpha buffer

goolord avatar Mar 08 '22 19:03 goolord

Could we start by just adding a config flag which disables autorendering altogether, then it would be the user's job to define the autocmd?

https://github.com/goolord/alpha-nvim/blob/4781fcfea5ddc1a92d41b32dc325132ed6fce7a8/lua/alpha.lua#L586-L589

I can send a PR which migrates this snippet to the new lua API and only adds the autocmd if some config flag is present

bennypowers avatar Apr 24 '22 08:04 bennypowers