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

[FEATURE]save the lsp workspace folders environment variable #263

Open
ghost opened this issue Jan 26, 2024 · 1 comment
Open

[FEATURE]save the lsp workspace folders environment variable #263

ghost opened this issue Jan 26, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jan 26, 2024

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

-- add path environment variable
vim.lsp.buf.add_workspace_folder

recovering after calling the SessionSave command did not recover the lsp workspace

Describe the solution you'd like
Run vim.lsp.buf.add_workspace_folder to see the previously added workspace

Describe alternatives you've considered
by pre_ save and SessionRestore

Additional context

1. nvim demo/
2. vim.lsp.buf.add_workspace_folder()
3. vim.inspect(vim.lsp.buf.list_workspace_folders())
4. exit nvim
5. nvim demo/
6. :SessionRestore
7. vim.inspect(vim.lsp.buf.list_workspace_folders())
@ghost ghost added the enhancement New feature or request label Jan 26, 2024
@ghost ghost assigned rmagatti Jan 26, 2024
@rmagatti
Copy link
Owner

Does it get saved if you manually rum mksess to create a session and manually restore it after?
What gets saved in the session is up to upstream Neovim and its available options. auto-session does not have control or implement extras on top of Neovim's supported session saving features.

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

1 participant