Skip to content

Commit b62f930

Browse files
committed
Add README.md
1 parent 1a29faf commit b62f930

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# tree-sitter-taskr
2+
This is the tree-sitter parser for taskr. Currently only provides highlighting.
3+
4+
## Manual configuration
5+
1. Put this snippet in your nvim-treesiter configuration.
6+
```lua
7+
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
8+
parser_config.taskr = {
9+
install_info = {
10+
url = "https://github.com/arne-vl/tree-sitter-taskr",
11+
files = { "src/parser.c" },
12+
branch = "main",
13+
generate_requires_npm = true,
14+
requires_generate_from_grammar = true,
15+
},
16+
filetype = "taskrfile",
17+
}
18+
```
19+
20+
2. Restart `nvim` and install the parser using `:TSInstall taskr`
21+
3. Copy the contents of `queries/taskr/highlights.scm` into `~/.config/nvim/queries/taskr/highlights.scm`
22+
4. Restart `nvim`.

0 commit comments

Comments
 (0)