-
Notifications
You must be signed in to change notification settings - Fork 52
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
The session does not load via $ nvim -c {command} #90
Comments
Oh, I got it. You probably have |
|
Yes, you need to override it explicitly. |
I just started dealing with nvim and immediately started with astrovim. It didn't work to add a parameter change. Let's look at an example on neo-tree. I think the plugin is missing getting data from the nvim start command. Now I don't know if this is a bug or a missing feature. I think the developer has to decide what to do - change the tag or leave it. Or just close the issue. |
With the mentioned change it works exactly as you described in "expected behavior", I tested it. The plugin by default autoloads last session when you just call What you need is to disable the autoloading the way I said in your configuration and |
Unfortunately, I do not know how your plugin works with pure nvim, I have it installed through astrovim. And I did not see that the last session is loaded by default. |
Show me how you installed it, I think you enabled lazy loading and that's why session is not autoloaded by default. |
Bug description
In the terminal, running nvim with the command :SessionManager load_current_dir_ression does not open a session from the current directory:
$ nvim -c ':SessionManager load_current_dir_ression'
Steps to reproduce
I have projects proj_1, proj_2.
$ cd /path/to/root/dir/proj_1 $ nvim
Save the session through the menu:
{<leader>-Ss}
. Close nvim.$ cd /path/to/root/dir/proj_2 $ nvim
Save the session through the menu:
{<leader>-Ss}
. Close nvim.Then I go to the directory of the first project(proj_1).I run nvim with the command to run from the project session of the current directory.
Result:
file_proj_2 is open in the buffer, the root directory in the neo-tree is /path/to/root/dir/proj_2. This is the loaded proj_2 session.
Expected behavior
A session of the first project(proj-1) must be open.
Environment
Additional context
:SessionManager [load_current_dir_session | load_last_session | load_session]
work.:h -c
The text was updated successfully, but these errors were encountered: