Pyfun
Pyfun language support: Tree-sitter syntax highlighting and the pyfun language server.
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 Pyfun. The extension's id is pyfun.
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.
Pyfun for Zed
Zed extension for Pyfun: Tree-sitter
syntax highlighting (sourced from
editors/tree-sitter-pyfun), outline, brackets, and
the pyfun lsp language server (diagnostics, hover types/effects,
go-to-definition, rename, completion).
Prerequisite: pyfun on your PATH (pip install pyfun-lang).
Install (dev extension)
Until the extension is on the Zed registry, install it as a dev extension —
Zed compiles it locally (needs a Rust toolchain with the wasm32-wasip2
target: rustup target add wasm32-wasip2, or the install fails with
"failed to compile Rust extension"):
- Clone this repo.
- In Zed: Extensions (
ctrl-shift-x/cmd-shift-x) → Install Dev Extension → select theeditors/zeddirectory. - Open a
.pyfunfile.
Maintenance notes
extension.tomlpins the grammar by commit (rev) withpathpointing at the grammar's subdirectory of this repo — bumprevwhen the grammar changes.languages/pyfun/highlights.scmis the Zed-dialect twin ofeditors/tree-sitter-pyfun/queries/highlights.scm; keep them in sync.- Registry publication = PR to zed-industries/extensions adding this directory as a submodule entry.