-
-
Notifications
You must be signed in to change notification settings - Fork 376
resolve relative paths for configuration paths #2288
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
Conversation
note that the os project is my only project currently that uses anything besides standard zig 0.14. it's gotten pretty annoying having to |
Using To give an example of how this could look like in Zed, the following {
"lsp": {
"zls": {
"settings": {
"zig_lib_path": "./path/to/zig/lib"
}
}
}
} An absolute path already works. Relative paths should only be supported with workspace configuration. Also, Zed has Direnv integration which can be used to set the I see that the ZLS docs do not explain how to setup per-project configuration so I am currently looking into updating them. I would suggest to subscribe to #1687 which tracks this issue. |
May I ask why you have this preference? that encourages duplicating configuration options ( preferring further, as mentioned in the issue you linked (#1687), the default behavior in neovim for over 6 months now is to handle a workspace |
I do not exactly know what the future holds for the
Sharing LSP configuration between editors is a nice property of the Ideally there would be a way to set LSP configuration that not only works across editors but also across LSPs. Think of EditorConfig but for LSP configuration.
As stated in the ZLS docs, there is not a single editor that I have documented which must be configured with a
The
I do not control how editors setup integration with ZLS. If's that how nvim-lspconfig wants to do per-project LSP configuration then that's on them. I am planning to look into how exrc and direnv can be used in Neovim. |
fair enough. thank you for writing a thorough response :) |
in my os project, i use a submodule for the zig repo to
build.zig
from the zig repo, since it's unnecessary and causes my project'sbuild.zig
to fail to build (since i use zig 0.14 to build my project, only diverging with std)it'd be nice to support this automatically with editor configurations. for example, in the latest commit of my os project, i included a
zls.json
that sets the zig lib dir to the one in the submodule.