add install section for neovim to readme
This commit is contained in:
parent
16d8b4c5f7
commit
3fe837dccb
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -9,3 +9,22 @@ References:
|
|||
|
||||
![screenshot](./assets/screenshot.png)
|
||||
|
||||
|
||||
# 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',
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue