DreamMaker Language Server for Zed Editor
Code for the zed-dreammaker-langserver Zed extention, providing linting, code navigation and syntax highlighting for the DreamMaker language.
This extension relies on SpacemanDMM by SpaceManiac and its prebuilt binaries of dm-langserver.exe, but you can always build your own binaries here.
The tree-sitter files can be found here: https://github.com/mcbalaam/dm-tree-sitter
Currently only tested on Windows x64, will get tested and receive Linux support later.
- Install the extension. This will build the
tree-sitterfor the syntax highliting and will take some time to complete when done for the first time.
or, if installing manually
-
Download as
.zipand unpack or clone the repository. Open Zed, pressctrl+shift+pto bring up the command bar, selectzed: install dev extensionand navigate to the extension folder. -
Open the latest release of SpacemanDMM here and download the
dm-langserver.exebinary. -
Open the Zed settings as
.jsonand add the following to your configuration:
"lsp": {
"dm-langserver": {
"binary": {
"path": "C:\\path\\to\\your\\binary\\dm-langserver.exe"
}
}
},Zed doesn't currently support status bar manipulation, which means you'll have to reparse your enviroment by restrtging the laguage servers. This can be done by clicking the lightning bolt icon on the status bar:
You can also hold ctrl to navigate to parsed variables, functions, defines and classes by clicking on highlited strings.