Skip to content

Commit

Permalink
Merge pull request #10 from TheBeyondGroup/jeff/add-lsp
Browse files Browse the repository at this point in the history
feat: add support for Shopify Liquid Language server
  • Loading branch information
jeffreyguenther authored Jan 8, 2025
2 parents 7fb369a + faad07a commit d42808d
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
grammars/
target/
extension.wasm
329 changes: 329 additions & 0 deletions Cargo.lock

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

16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "zed_liquid"
version = "0.0.2"
edition = "2021"
publish = false
license = "MIT"

# [lints]
# workspace = true

[lib]
path = "src/liquid.rs"
crate-type = ["cdylib"]

[dependencies]
zed_extension_api = "0.2.0"
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ contributions are welcome!
>
> How to deal with this will come in the future.
## Configure Prettier formatting
``` json
"languages": {
"Liquid": {
"prettier": {
"allowed": true,
"plugins": ["@shopify/prettier-plugin-liquid"]
}
}
}
```

## Credits

This extension uses [grammar](https://github.com/hankthetank27/tree-sitter-liquid) and queries from [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/liquid)
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/TheBeyondGroup/zed-shopify-liquid"
[grammars.liquid]
repository = "https://github.com/hankthetank27/tree-sitter-liquid"
commit = "23ac814111e2b4b4b083e2c92219af2d5b74d13d"

[language_servers.liquid]
name = "Liquid LSP"
languages = ["Liquid"]
Loading

0 comments on commit d42808d

Please sign in to comment.