Skip to content

how to set up server in zed editor #65

@kurokirasama

Description

@kurokirasama

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:

"matlab-language-server": {
     "binary": {
       "path": "/usr/bin/node",
       "arguments": [
         "/home/kira/software/MATLAB-language-server/out/index.js",
         "--stdio",
         "--matlabInstallPath",
         "/usr/local/MATLAB/R2024b"
       ]
     },
     "settings": {
       "MATLAB.indexWorkspace": true,
       "MATLAB.installPath": "/usr/local/MATLAB/R2024b",
       "MATLAB.matlabConnectionTiming": "onStart",
       "MATLAB.telemetry": false
     }
   },

but the server is not starting when editing a .m file. I also added to the zed config:

"languages": {
   "MATLAB": {
     "language_servers": ["matlab-language-server"],
     "tab_size": 2,
     "hard_tabs": true
   },
}

"file_types": {
   "MATLAB": ["m"],
 },

Any ideas of what I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions