Use Helix in conjunction with MATLAB Language Server #8956
-
Quick backgroundMathWorks published their own MATLAB language server, and it is now working with
Note that since v1.2.7 of MATLAB language server,
#!/usr/bin/env bash
exec node "/home/$USER/.local/share/MATLAB-language-server/out/index.js" "$@"
[[language]]
name = "matlab"
scope = "source.m"
file-types = ["m"]
comment-token = "%"
shebangs = ["matlab"]
# indent = { tab-width = 2, unit = " " }
language-servers = ["matlab_ls"]
[language-server.matlab_ls]
command = "matlab_ls"
args = ["--stdio"]
[language-server.matlab_ls.config.MATLAB]
installPath = "/usr/local/MATLAB/R2024b"
indexWorkspace = "true"
matlabConnectionTiming = "onStart"
telemetry = "false" Make sure that the
Here are the relevant log files:
What I have observed
Any suggestions / ideas? Thank you! UpdateThe following configuration, suggested by @gabydd , is now working: [[language]]
name = "matlab"
scope = "source.m"
file-types = ["m"]
comment-token = "%"
shebangs = ["matlab"]
indent = { tab-width = 2, unit = " " }
language-servers = ["matlab_ls"]
[language-server.matlab_ls]
command = "matlab_ls"
args = ["--stdio"]
[language-server.matlab_ls.config.MATLAB]
installPath = "/usr/share/matlab"
indexWorkspace = "true"
matlabConnectionTiming = "onStart"
telemetry = "false" Note that the LSP actions, such as |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hmm two things does it work properly in neovim? Also the stuff under environment should be under |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info! I can confirm that it works properly in |
Beta Was this translation helpful? Give feedback.
-
Check this. |
Beta Was this translation helpful? Give feedback.
can you try?