Installing the Ada Language Server
First you want to download the Ada Language Server. Where you can get here and download for which operating system you have.
Now you need to add it to your PATH. For Windows I just made a folder called “als” and put ada_language_server.exe
inside and used that.
Once you have that you can set it up with LSP.
Installing LSP
- Go to
Tools
→Command Palette
orCtrl+Shift+P
. - Search for
Package Control: Install Package
. - Select it and search
LSP
.
Configuring LSP for Ada
- To start you want to go to
Preferences
→Package Settings
→LSP
→Settings
. - Then once inside add this to the file on the right hand side
{
"clients": {
"ada": {
"enabled": true,
"command": ["path/to/ada_language_server.exe"],
"selector": "source.ada",
"languageId": "ada"
}
}
}
You may want to restart Sublime Text if it’s not working.
Syntax Highlighting
To get syntax you want to install another package named Ada
like we did with LSP. Going into the command palette and installing the package.
All Done!
Once you have all that you should be getting error squiggles in the editor and getting suggestions. If you have any questions or anything just message below.
Happy Coding!