d2 grammar for tree-sitter
Find a file
2024-07-12 20:36:24 +03:00
assets doc: update screenshots 2023-06-16 01:42:08 +03:00
bindings update tree-sitter deps 2024-07-12 20:36:24 +03:00
dev queries: add folds 2023-06-16 18:37:15 +03:00
examples grammar: add support of underscore keyword... 2023-06-16 07:42:49 +03:00
queries update tree-sitter deps 2024-07-12 20:36:24 +03:00
scripts remove unnecessary choice 2022-12-10 23:09:11 +03:00
src update tree-sitter deps 2024-07-12 20:36:24 +03:00
test update tree-sitter deps 2024-07-12 20:36:24 +03:00
.editorconfig update tree-sitter deps 2024-07-12 20:36:24 +03:00
.gitattributes update tree-sitter deps 2024-07-12 20:36:24 +03:00
.gitignore Add structure for container and shapes (#1) 2022-12-09 12:36:31 +03:00
binding.gyp update tree-sitter deps 2024-07-12 20:36:24 +03:00
Cargo.toml initial commit 2022-12-04 00:07:26 +03:00
flake.lock update tree-sitter deps 2024-07-12 20:36:24 +03:00
flake.nix update tree-sitter deps 2024-07-12 20:36:24 +03:00
grammar.js update tree-sitter deps 2024-07-12 20:36:24 +03:00
Makefile update tree-sitter deps 2024-07-12 20:36:24 +03:00
package-lock.json update tree-sitter deps 2024-07-12 20:36:24 +03:00
package.json update tree-sitter deps 2024-07-12 20:36:24 +03:00
Package.swift update tree-sitter deps 2024-07-12 20:36:24 +03:00
pyproject.toml update tree-sitter deps 2024-07-12 20:36:24 +03:00
README.md update tree-sitter deps 2024-07-12 20:36:24 +03:00
setup.py update tree-sitter deps 2024-07-12 20:36:24 +03:00
tree-sitter-d2.wasm update tree-sitter deps 2024-07-12 20:36:24 +03:00

tree-sitter-d2

D2 grammar for tree-sitter.

References:

Highlights

screenshot_1

screenshot_2

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

Mirrors