I'm using Zed and the zig extension to code in Zig. But I have a strange problem and perhaps somebody here is using Zed too and knows a fix.
If I start Zed by clicking on it's icon, it says it couldn't load zls. But it is in the path and if I do echo $PATH, the path to zls is in the output.
If I start zed from a terminal window, it works.
Configuration in settings.json looks like this:
"languages": {
"zig": {
"formatter": "language_server",
"language_servers": [
"zls"
]
}
},
"lsp": {
"zls": {
"settings": {
"enable_build_on_save": false,
"enable_autofix": false,
"warn_style": true,
"highlight_global_var_declarations": true
}
}
}
Any ideas on where to look or what to change?