aardappel / lobster

The Lobster Programming Language
http://strlen.com/lobster
2.25k stars 119 forks source link

Zed support #317

Open inferrna opened 1 month ago

inferrna commented 1 month ago

Still no 🦞 support in Zed, so I decided to make one.

Currently, it is not recommended for everyday usage, but already can do something. image

Zed extension API relies on tree-sitter and LSP. So

Here https://github.com/inferrna/tree-sitter-lobster is tree-sitter grammar. It was bravely forked from tree-sitter-python, and now it is mostly python with C-style comments and var + let highlighting support.

Here https://github.com/inferrna/zed-lobster is Zed extension itself + LSP server (which I borrowed from your code. I made some modifications to force it working somehow because it seems that not all required methods are supported by Zed).

Pull requests and any collab are welcome because I'm not so powered in all this stuff, even in Lobster )

aardappel commented 1 month ago

@ewoudje who made the LSP.

I'd say that rather than copying it, you'd be better of sub-moduling Lobster or whatever, so you get updates.

ewoudje commented 1 month ago

Oh nice, those changes you made with the LSP you can PR them if you'd like. then you can indeed also submodule lobster with your LSP changes. I'm assuming certain features that current LSP implementation uses aren't implemented in Zed, it would be great if we could just support not having those features when they're not available