Skip to content

Commit 4b36ea4

Browse files
committed
update in editor configuration for various editors
1 parent 19282f4 commit 4b36ea4

File tree

3 files changed

+54
-11
lines changed

3 files changed

+54
-11
lines changed

content/zls/editors/helix.smd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To apply in-editor configuration or manually specify the path to `zig` or `zls`,
1717
command = "/path/to/zls_executable"
1818
# There are two ways to set config options:
1919
# - edit your `zls.json` that applies to any editor that uses ZLS
20-
# - set in-editor config options with the `config.<name>` fields below.
20+
# - set in-editor config options with the `config.zls.<name>` fields below.
2121
#
2222
# Further information on how to configure ZLS:
2323
# https://zigtools.org/zls/configure/
@@ -26,10 +26,10 @@ command = "/path/to/zls_executable"
2626
#
2727
# Further information about build-on save:
2828
# https://zigtools.org/zls/guides/build-on-save/
29-
# config.enable_build_on_save = true
29+
# config.zls.enable_build_on_save = true
3030

3131
# omit the following line if `zig` is in your PATH
32-
config.zig_exe_path = "/path/to/zig_executable"
32+
config.zls.zig_exe_path = "/path/to/zig_executable"
3333
```
3434

3535
Further information on [languages.toml files](https://docs.helix-editor.com/languages.html#languagestoml-files).

content/zls/editors/sublime-text.smd

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"semantic_highlighting": true,
4747

4848
"clients": {
49-
"zig": {
49+
"zls": {
5050
"enabled": true,
5151
// Set to "zls" if `zls` is in your PATH
5252
"command": ["/path/to/zls_executable"],
@@ -58,14 +58,16 @@
5858
// Further information on how to configure ZLS:
5959
// https://zigtools.org/zls/configure/
6060
"settings": {
61-
// Whether to enable build-on-save diagnostics
62-
//
63-
// Further information about build-on save:
64-
// https://zigtools.org/zls/guides/build-on-save/
65-
// "enable_build_on_save": true,
61+
"zls": {
62+
// Whether to enable build-on-save diagnostics
63+
//
64+
// Further information about build-on save:
65+
// https://zigtools.org/zls/guides/build-on-save/
66+
// "enable_build_on_save": true,
6667

67-
// omit the following line if `zig` is in your PATH
68-
"zig_exe_path": "/path/to/zig_executable"
68+
// omit the following line if `zig` is in your PATH
69+
"zig_exe_path": "/path/to/zig_executable"
70+
},
6971
}
7072
}
7173
}

content/zls/editors/zed.smd

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ Add the following to your `settings.json`:
4343
//
4444
// Further information on how to configure ZLS:
4545
// https://zigtools.org/zls/configure/
46+
"settings": {
47+
// ...
48+
}
49+
}
50+
}
51+
}
52+
```
53+
54+
### In-Editor configuration
55+
56+
#### ZLS 0.14.0
57+
58+
```json
59+
{
60+
"lsp": {
61+
"zls": {
62+
"binary": {...},
4663
"settings": {
4764
// Whether to enable build-on-save diagnostics
4865
//
@@ -58,6 +75,30 @@ Add the following to your `settings.json`:
5875
}
5976
```
6077

78+
#### ZLS nightly
79+
80+
```json
81+
{
82+
"lsp": {
83+
"zls": {
84+
"binary": {...},
85+
"settings": {
86+
"zls": {
87+
// Whether to enable build-on-save diagnostics
88+
//
89+
// Further information about build-on save:
90+
// https://zigtools.org/zls/guides/build-on-save/
91+
// "enable_build_on_save": true,
92+
93+
// omit the following line if `zig` is in your PATH
94+
"zig_exe_path": "/path/to/zig_executable",
95+
}
96+
}
97+
}
98+
}
99+
}
100+
```
101+
61102
## Per-project config
62103

63104
Zed supports per-project configuration by creating a `.zed/settings.json` inside a project. For more information, check the Zed about [configuration docs](https://zed.dev/docs/configuring-zed#configuring-zed).

0 commit comments

Comments
 (0)