Closed tapyu closed 1 year ago
... I don't really know what's going on here but alpha doesn't touch sessions at all. i use neovim-session-manager without telescope-ui-select.nvim and it works fine. I can try to dig around and see what's up with this though
but alpha doesn't touch sessions at all.
This statement might be true but that's not where the problem probably lies. It seems that alpha-nvim
are seeing a modified unsaved buffer, when actually there isn't anything...
i use neovim-session-manager without telescope-ui-select.nvim and it works fine
Yeah, this is right, I can reproduce the same here. It works fine without telescope-ui-select.nvim
I can try to dig around and see what's up with this though
I can do it as soon as I have a free time, which is quite hard nowadays :cold_sweat:
yea you can't display text without creating a buffer. since the buffer type is nofile
i would surmise it wouldn't effect the session
A bit of a shot in the dark, but try calling the telescope-ui-select callback using vim.schedule
... I don't really know what's going on here but alpha doesn't touch sessions at all. i use neovim-session-manager without telescope-ui-select.nvim and it works fine. I can try to dig around and see what's up with this though
I'm trying to get this setup to work for me, i.e., alpha-nvim + neovim-sessions-manager. When I enter the command SessionManager load_session
from the start screen it works great. However, I've also added the following button which does not work:
dashboard.button("l", "Load session", ":SessionManager load_session <CR>"),
Instead, when I hit l
for 'Load session' I get: "No such subcommand: load_sessions". I must be missing something small as it seems that it is close to working. Any help would be greatly appreciated.
the error message says "No such subcommand: load_sessions"? or is that a typo only present in your comment
Yes my typo. It is in fact singular.
@benbrastmckie i finally figured out what your bug is. there is a space here load_session <CR>
that's getting parsed as the session name " "
by that plugin. just remove the space and your button should work 👍
@tapyu is this still a problem for you? i'm using these plugins in this way with no problems
Hey sorry for the slow reply. I got it working just great. Thanks for the help!
I've set up
alpha-nvim
to work along withShatur/neovim-session-manager
which, in turn, makes use of telescope-ui-select.nvim to handlevim.ui.select
withtelescope
. Whenever I try to select a session in a bareneovim
command,alpha-nvim
wrongly alert me that the current session have change.How to reproduce
save this file as
minimal_init.lua
nvim -u minimal_init.lua
:SessionManager load_session
(you should have a session saved, of course. If you don't, just run:SessionManager save_current session
)You will see this behavior:
Expected behavior
alpha-nvim
should go to session directly.