Kate
In Editor Configuration: Supported
Kate has builtin support for Zig and automatically asks you to enable ZLS if if is found in your $PATH
.
You can enable some LSP related settings like “Inlay Hints” or “Format on Save” under Settings -> LSP Client -> Client Settings
To apply in-editor-configuration or manually specify the path to zig
or zls
, open Settings -> LSP Client -> User Server Settings
and add the following snippet (and remove comments):
{
"servers": {
"zig": {
"command": ["/path/to/zls_executable"],
"url": "https://github.com/zigtools/zls",
"highlightingModeRegex": "^Zig$",
// There are two ways to set config options:
// - edit your `zls.json` that applies to any editor that uses ZLS
// - set in-editor config options with the `initializationOptions` field below.
//
// Further information on how to configure ZLS:
// https://zigtools.org/zls/configure/
//
// Support for `initializationOptions` in Kate requires at least ZLS `0.14.0-dev.22+a263b8dc6`.
"initializationOptions": {
// Whether to enable build-on-save diagnostics
//
// Further information about build-on save:
// https://zigtools.org/zls/guides/build-on-save/
// "enable_build_on_save": true,
// omit the following line if `zig` is in your PATH
"zig_exe_path": "/path/to/zig_executable"
}
}
}
}
Warning
Be aware that Kate does not support Json with comments or trailing commas.
Code Actions on save
Kate does not support code actions on save.