Skip to content

Commit cdb3510

Browse files
committed
Update README: add NeoVim Treesitter installation
1 parent 3906938 commit cdb3510

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@ Fuchsia developers using tree-sitter supported editors (NeoVim / Emacs).
2828

2929
### NeoVim Treesitter
3030

31-
TODO: add to [nvim-treesitter][] register.
31+
*Require NeoVim version > 0.9* to use [nvim-treesitter][] plugin.
32+
33+
`:TSInstall fidl` to install in NeoVim.
34+
35+
You may need to install `tree-sitter` and `nodejs`.
36+
37+
Add filetype mapping, you may add this to `<nvim-config>/lua/options.lua`:
38+
39+
```lua
40+
vim.filetype.add({ extension = { fidl = "fidl" } })
41+
```
3242

3343
#### local installation
3444

@@ -56,7 +66,6 @@ usually `$XDG_CONFIG_HOME/nvim` is one of the runtime-dir.
5666
## TODOs
5767

5868
- [ ] setup github actions to pull fuchsia repo and verify sdk every half year
59-
- [ ] add to nvim-treesitter
6069
- [ ] add instructions for emacs usage
6170

6271

0 commit comments

Comments
 (0)