Skip to content

Commit

Permalink
language server API integration skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
trbutler4 committed Jun 4, 2024
1 parent 24075e4 commit bfee3d9
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
ignored/


# Added by cargo

/target
322 changes: 322 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "zed-cairo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
zed_extension_api = "0.0.6"

[lib]
crate-type = ["cdylib"]
4 changes: 4 additions & 0 deletions extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ repository = "https://github.com/trbutler4/zed-cairo"
[grammars.cairo]
repository = "https://github.com/JoranHonig/tree-sitter-cairo"
commit = "127f38a6c03d009ccf5798cf0eaad7d5df982445"

[language_servers.cairo]
name = "Cairo LSP"
language = "Cairo"
11 changes: 11 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use zed_extension_api as zed;

struct MyExtension {
// ... state
}

impl zed::Extension for MyExtension {
// ...
}

zed::register_extension!(MyExtension);

0 comments on commit bfee3d9

Please sign in to comment.