Skip to content

eonpatapon/tree-sitter-cue

Repository files navigation

tree-sitter-cue

Build Status Discord

Cue grammar for tree-sitter.

AST and highlights in Neovim

Setup in Neovim

Using lazy.nvim

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,
}