Skip to content

anzellai/tree-sitter-sky

Repository files navigation

tree-sitter-sky

Tree-sitter grammar for the Sky programming language — an Elm-inspired language that compiles to Go.

Usage with Helix

Add to your languages.toml:

[[language]]
name = "sky"
scope = "source.sky"
file-types = ["sky", "skyi"]
auto-format = true
formatter = { command = "sky", args = ["fmt", "-"] }
language-servers = ["sky-lsp"]
indent = { tab-width = 4, unit = "    " }

[[grammar]]
name = "sky"
source = { git = "https://github.com/anzellai/tree-sitter-sky" }

[language-server.sky-lsp]
command = "sky-lsp"
args = ["--stdio"]

Then fetch and build:

hx --grammar fetch
hx --grammar build

Copy queries/highlights.scm to your Helix runtime:

mkdir -p ~/.config/helix/runtime/queries/sky
cp queries/highlights.scm ~/.config/helix/runtime/queries/sky/
cp queries/locals.scm ~/.config/helix/runtime/queries/sky/

Development

npm install
npm run generate
npm run test

License

MIT

About

tree sitter for Sky programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors