https://github.com/pleshevskiy/tree-sitter-d2
d2 grammar for tree-sitter
https://github.com/pleshevskiy/tree-sitter-d2
d2 grammar parser tree-sitter
Last synced: over 1 year ago
JSON representation
d2 grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/pleshevskiy/tree-sitter-d2
- Owner: pleshevskiy
- Archived: true
- Created: 2022-12-03T21:08:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T03:03:23.000Z (over 3 years ago)
- Last Synced: 2024-10-23T20:15:25.142Z (over 1 year ago)
- Topics: d2, grammar, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 849 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tree-sitter-d2
d2 grammar for tree-sitter.
References:
- https://d2lang.com/
## Highlights

# Install
## Neovim
Using `nvim-treesitter`, add to your configuration
```lua
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',
};
```