Adding MATLAB LSP support for Emacs (using lsp-bridge mode)
Contents
Install server
If you don’t have node and npm installed, install them first. Then, build the matlab LSP language server as follows:
|
|
After your installation, you need to keep this MATLAB-language-server/ for you use of LSP langserver in Emacs.
MATLAB langserver json config
|
|
⚠️ Warning: As stated in the gitrepo, this language server requires MATLAB version R2021a or later to work!
Configure lsp-bridge mode to load langserver
Add the following configures in your Emacs init files for lsp-bridge:
|
|
I use octave-mode to edit MATLAB files. If you use matlab-mode, remember to replace octave-mode with matlab-mode.
Enjoy :D
Author oracleyue
LastMod 2024-01-10