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

fix(zls): use workspace zls.json if available #2944

Merged

Conversation

lawrence-laz
Copy link
Contributor

Language server config is read from zls.json. By default common global and user config directories are searched. However, this omits per-project configuration, which can be available in the workspace dir.

We already look for zls.json to determine root dir, but we don't use it when starting the language server.

This change appends cmd with --config-path "zls.json", which uses the file when it's available and fall-backs to default logic when file is not available.

@justinmk
Copy link
Member

justinmk commented Oct 1, 2024

needs a rebase, the server_configurations/ directory was renamed to configs/ #3330

@lawrence-laz lawrence-laz force-pushed the fix-zls-use-workspace-configuration branch from 9bd03c9 to cff9e24 Compare October 2, 2024 08:58
Language server config is read from `zls.json`. By default common global
and user config directories are searched. However, this omits
per-project configuration, which can be available in the workspace dir.

We already look for `zls.json` to determine root dir, but we don't use
it when starting the language server.

This change appends `cmd` with `--config-path "zls.json"`, which uses
the file when it's available and fall-backs to default logic when file
is not available.
@lawrence-laz lawrence-laz force-pushed the fix-zls-use-workspace-configuration branch from cff9e24 to 5ac8aa1 Compare October 2, 2024 09:02
@lawrence-laz
Copy link
Contributor Author

rebased

@justinmk justinmk merged commit 2b5e962 into neovim:master Oct 2, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants