Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/eonpatapon/tree-sitter-cue

Cue grammar for tree-sitter
https://github.com/eonpatapon/tree-sitter-cue

cue cuelang tree-sitter

Last synced: 18 days ago
JSON representation

Cue grammar for tree-sitter

Lists

README

        

# tree-sitter-cue

[![Build Status](https://github.com/eonpatapon/tree-sitter-cue/actions/workflows/ci.yml/badge.svg)](https://github.com/eonpatapon/tree-sitter-cue/actions/workflows/ci.yml)
[![Discord](https://img.shields.io/discord/1063097320771698699?logo=discord)](https://discord.gg/w7nTvsVJhm)

[Cue][] grammar for [tree-sitter][].

![AST and highlights in Neovim](./neovim-ts.png)

## Setup in Neovim

Using [lazy.nvim](https://github.com/folke/lazy.nvim)

```lua

return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
--- @type TSConfig
opts = {
ensure_installed = {
"cue",
},
},
---@param opts TSConfig
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}
```

[tree-sitter]: https://github.com/tree-sitter/tree-sitter
[cue]: https://github.com/cue-lang/cue