Janet Language Support for Zed
|
Khang Nguyen Duy
38d5cee121
highlight array and table delimiters containing @ symbol ( #3 )
Fixes: #2 Reviewed-on: #3 |
||
|---|---|---|
| languages/janet | highlight array and table delimiters containing @ symbol | |
| src | Initial commit! | |
| .gitattributes | Initial commit! | |
| .gitignore | Initial commit! | |
| Cargo.lock | Initial commit! | |
| Cargo.toml | Initial commit! | |
| extension.toml | Initial commit! | |
| LICENSE | Initial commit! | |
| README.md | Initial commit! | |
zed-janet - Janet language support in Zed
Janet language support in Zed.
Notable features:
- Docstrings highlight.
- Symbol outlines.
- Run buttons on
(defn main)and(test). - LSP support via CFiggers/janet-lsp.
Formatting with LSP disabled
In case you don't like LSP but still want the editor to format files for you,
use this config to use spork/fmt instead:
{
"languages": {
"Janet": {
"formatter": {
"external": {
"command": "janet",
"arguments": [
"--eval",
"(use spork/fmt)(format-print (file/read stdin :all))",
],
},
},
},
},
}
Obviously this requires spork to be globally installed on your machine, but you could
tweak this to your use case. Change it to use some locally vendored fmt.janet, or
pass --syspath and pray that Janet will find your custom spork installation.
Credits
- tree-sitter-janet-simple: Insanely simple tree-sitter grammar for Janet.
- janet-zed: The original Janet extensions. Abeit abandoned.
- zig: Example on how to write a Zed LSP extension.