You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 days ago | |
---|---|---|
assets | 3 months ago | |
bindings | 4 months ago | |
dev | 3 months ago | |
examples | 4 months ago | |
queries | 3 months ago | |
scripts | 4 months ago | |
src | 6 days ago | |
test | 3 months ago | |
.gitignore | 4 months ago | |
Cargo.toml | 4 months ago | |
Makefile | 3 months ago | |
README.md | 6 days ago | |
binding.gyp | 4 months ago | |
flake.lock | 4 months ago | |
flake.nix | 4 months ago | |
grammar.js | 6 days ago | |
package.json | 4 months ago | |
tree-sitter-d2.wasm | 6 days ago |
README.md
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.cc' },
},
filetype = 'd2',
};