d2 grammar for tree-sitter
Find a file
2022-12-10 23:15:19 +03:00
assets add language injections 2022-12-09 18:21:55 +03:00
bindings Add support of any escape character in text block 2022-12-10 22:56:41 +03:00
dev add language injections 2022-12-09 18:21:55 +03:00
examples change highlights 2022-12-09 19:05:04 +03:00
queries Add support of any escape character in text block 2022-12-10 22:56:41 +03:00
scripts remove unnecessary choice 2022-12-10 23:09:11 +03:00
src remove unnecessary choice 2022-12-10 23:09:11 +03:00
test Add support of any escape character in text block 2022-12-10 22:56:41 +03:00
.gitignore Add structure for container and shapes (#1) 2022-12-09 12:36:31 +03:00
binding.gyp Add support of any escape character in text block 2022-12-10 22:56:41 +03:00
Cargo.toml initial commit 2022-12-04 00:07:26 +03:00
flake.lock initial commit 2022-12-04 00:07:26 +03:00
flake.nix add dev editor 2022-12-07 13:57:13 +03:00
grammar.js remove unnecessary choice 2022-12-10 23:09:11 +03:00
Makefile use pre-commit hook instead 2022-12-10 23:00:30 +03:00
package.json fix highlight 2022-12-07 11:58:45 +03:00
README.md add install section for neovim to readme 2022-12-10 23:15:19 +03:00
tree-sitter-d2.wasm remove unnecessary choice 2022-12-10 23:09:11 +03:00

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