LazyVim / LazyVim

Neovim config for the lazy
https://lazyvim.github.io/
Apache License 2.0
16.01k stars 1.12k forks source link

feature: Fast navigate to recent a directory/session from multiple candidates. #770

Closed you-n-g closed 1 year ago

you-n-g commented 1 year ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

I have multiple projects. When I open neovim, I hope I can fast navigate into one of them.

Describe the solution you'd like

When you start Lazyvim in Neovim (like in the image below), it presents you with the option to choose either "Recent Directories" or "List sessions", allowing you to select one of them.

image

Describe alternatives you've considered

Some Vim plugins, such as Startify, provide similar features, but they may not be as convenient and may have bugs.

Additional context

No response

folke commented 1 year ago

You could install another session manager. See https://github.com/rockerBOO/awesome-neovim#session

This project is actually a fork of persistence.nvim that also includes a Telescope picker: https://github.com/olimorris/persisted.nvim

you-n-g commented 1 year ago

Thanks for your advice. Here is my new configuration for persistence which supports selecting sessions.

https://github.com/you-n-g/deploy/blob/2bf4119765d8900f2e180a045b403f1fcd087db0/configs/lazynvim/lua/plugins/session.lua#L24