1
0
Fork
You've already forked zed-janet
0
Janet Language Support for Zed
  • Rust 58.4%
  • Scheme 41.6%
2026年03月21日 17:28:13 +01:00
languages/janet highlight array and table delimiters containing @ symbol 2026年03月21日 23:23:20 +07:00
src Initial commit! 2026年03月21日 10:41:40 +07:00
.gitattributes Initial commit! 2026年03月21日 10:41:40 +07:00
.gitignore Initial commit! 2026年03月21日 10:41:40 +07:00
Cargo.lock Initial commit! 2026年03月21日 10:41:40 +07:00
Cargo.toml Initial commit! 2026年03月21日 10:41:40 +07:00
extension.toml Initial commit! 2026年03月21日 10:41:40 +07:00
LICENSE Initial commit! 2026年03月21日 10:41:40 +07:00
README.md Initial commit! 2026年03月21日 10:41:40 +07:00

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.