File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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 ` .
You can’t perform that action at this time.
0 commit comments