Skip to content
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

Use SessionNoLoadPost autocmd #103

Open
janie314 opened this issue Dec 27, 2023 · 1 comment
Open

Use SessionNoLoadPost autocmd #103

janie314 opened this issue Dec 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@janie314
Copy link

Issue

The documentation currently shows how to load Neotree or similar buffers automatically after a session load.

However, it is often desirable to load buffers like that even if a session is not loaded automatically.

Therefore, I propose we call the autocmd SessionNoLoadPost if a session is not found to be loaded. Then it would be easy to setup Neovim to always load Neotree, regardless of whether/not a session is available to be restored.

Other

If we agree this is a good idea, I'm happy to code a PR for this myself!

@janie314 janie314 added the enhancement New feature or request label Dec 27, 2023
@Shatur
Copy link
Owner

Shatur commented Dec 27, 2023

Can you configure to open any buffer at startup using built-in autocommands and check if you are inside a session?
Because SessionNoLoadPost sounds a bit odd to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants