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: 24 days ago
JSON representation
Cue grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/eonpatapon/tree-sitter-cue
- Owner: eonpatapon
- License: mit
- Created: 2021-09-22T17:06:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T10:22:49.000Z (8 months ago)
- Last Synced: 2024-10-01T14:27:01.148Z (about 1 month ago)
- Topics: cue, cuelang, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 979 KB
- Stars: 30
- Watchers: 5
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cue - tree-sitter-cue - CUE grammar for tree-sitter. (Projects)
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