Civet
Civet language support for Zed
LanguagesLanguage servers
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Civet. The extension's id is civet.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Civet Zed Extension
Zed editor extension that registers the Civet and Hera languages and launches the Civet LSP server.
Features
- Syntax highlighting via the tree-sitter grammars in
../tree-sitter/(Civet) and../tree-sitter-hera/(.heragrammar files) - LSP support via
civet-lspfor both.civetand.hera(diagnostics, completions, hover, go-to-definition), plus grammar-level navigation for.herarules
Prerequisites
civet-lsp must be on your PATH. The easiest way:
# Add to ~/.bashrc / ~/.zshrc
export PATH="/path/to/Civet/lsp/server/bin:$PATH"
Or install globally:
npm install -g @danielx/civet-language-server
Installing as a dev extension
- In Zed: Extensions → Install Dev Extension
- Select this directory (
lsp/zed/)
Updating the grammar
After any changes to ../tree-sitter/ or ../tree-sitter-hera/:
- Commit the changes
- Update
revinextension.tomlto the new commit SHA - Delete
grammars/so Zed re-fetches:rm -rf lsp/zed/grammars/ - Reinstall the dev extension in Zed