Repository navigation
set up the server in zed editor #64
Replies: 1 comment
|
Zed doesn't start a language server from an Two things then differ from your Sublime Text setup: 1. The extension starts a command called mkdir -p ~/.local/bin
cat > ~/.local/bin/matlab_ls <<'EOF'
#!/usr/bin/env bash
exec /usr/bin/node /home/kira/software/MATLAB-language-server/out/index.js "$@"
EOF
chmod +x ~/.local/bin/matlab_lsMake sure 2. Settings go without the {
"lsp": {
"matlab-language-server": {
"settings": {
"installPath": "/usr/local/MATLAB/R2024b",
"indexWorkspace": true,
"matlabConnectionTiming": "onStart",
"telemetry": false
}
}
}
}The install path comes from |
Uh oh!
There was an error while loading. Please reload this page.
Hey!! I'm trying the zed editor (I use sublime text) and the one thing I'm missing to port to zed is the configuration to been able to use the matlab-lsp-server.
In sublime text, I use this working config:
{ "clients": { "matlab": { "command": [ "/usr/bin/node", "/home/kira/software/MATLAB-language-server/out/index.js", "--stdio", "--matlabInstallPath", "/usr/local/MATLAB/R2024b" ], "enabled": true, "selector": "source.matlab", "settings": { "MATLAB.indexWorkspace": true, "MATLAB.installPath": "/usr/local/MATLAB/R2024b", "MATLAB.matlabConnectionTiming": "onStart", "MATLAB.telemetry": false } }, }, "log_debug": true }I tried to directly port it to zed via:
but the server is not starting when editing a .m file. I also added to the zed config:
Any ideas of what I'm doing wrong?
All reactions