-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for lsp workspace variable #29
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
Comments
OK, implemented it myself. Kind of cool. Feel free to add to suggestions. A function to update lsp workspace folder on hook.
Explanation: |
Hey! Thank you for the suggestion. Although this shares language with LSP (worksapce), this plugin does not interact with LSP workspaces. I also don't think it makes sense to add LSP workspace support. This just adds some project directories (called workspaces) to nvim.
Sorry you found it confusing! Feel free to open a PR if you have anything specific you would like me to improve. Or just point out specifically where you find it confusing. |
What does it mean add project directories to nvim ? Perhaps it was more wishful thinking than bad documentation. |
A project directory is a commonly used project folder. Some people (myself included) want to open nvim in any directory, and then have an option to open a project from within nvim. For example. I open my terminal in my home directory and then open nvim. From there I can run The alternative is to |
I understand this usage. But what does |
The way that So WorkspacesSyncDirs is used to automatically add all of those subdirectories as a workspace. The implementation was done this way to keep things more performant. But it may also be confusing. |
Uh oh!
There was an error while loading. Please reload this page.
(In fact I thought this is the whole purpose of this plugin, to manage lsp workspace settings)
I failed to understand the purpose of listdir and syncdir. What is the point in assigning dirs to workspace?
Please improve the documentation. Thanks!
I would just write the purpose clearly:
Choosing workspace by default would just change the cwd, but you can add hooks. And additional functionality.
The text was updated successfully, but these errors were encountered: