d2 grammar for tree-sitter
assets | ||
bindings | ||
dev | ||
examples | ||
queries | ||
scripts | ||
src | ||
test | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
binding.gyp | ||
Cargo.toml | ||
flake.lock | ||
flake.nix | ||
grammar.js | ||
Makefile | ||
package-lock.json | ||
package.json | ||
Package.swift | ||
pyproject.toml | ||
README.md | ||
setup.py | ||
tree-sitter-d2.wasm |
tree-sitter-d2
D2 grammar for tree-sitter.
References:
Highlights
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://git.pleshevski.ru/pleshevskiy/tree-sitter-d2',
revision = 'main',
files = { 'src/parser.c', 'src/scanner.c' },
},
filetype = 'd2',
};