I just pushed a fresh repo for Zotonic support as a Microsoft Language Server Protocol (LSP).
A minor code implementation has been made until now, just some ideas.
My goal is to create code autocomplete for Zotonic features, integrate hovering code with Zotonic docs, go to definitions like templates and libs, and syntax highlight for the Zotonic Template (.tpl).
I just released a minor version with just syntax highlight as a feature.
For now, only a VSCode extension has been published.
You can find the extension in the VSCode extensions feature or at the visual studio marketplace.
There is a new nice feature in v0.4.0, it is the model completion.
Now all models and their m_get patterns are turned into snippets.
Check it in action:
Using RegExp. Here, first I find all models in the workspace, then when one selected by the user, find all m_get in the model here.
There is no cache or previous state, the function always looks for the models in the workspace and finds the m_get functions.
HTML completions in v0.5.0.
Now typing < outside a .tpl expression popups HTML snippets.
Try it in VSCode downloading and installing the extension.
Support me by buying me a coffee, like @mworrell