Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

pleshevskiy/tree-sitter-d2

Repository files navigation

tree-sitter-d2

d2 grammar for tree-sitter.

References:

Highlights

screenshot

Install

Neovim

Using nvim-treesitter, add to your configuration

local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.d2 = {
  install_info = {
    url = 'https://github.com/pleshevskiy/tree-sitter-d2',
    revision = 'main',
    files = { 'src/parser.c', 'src/scanner.cc' },
  },
  filetype = 'd2',
};