Skip to content

Commit

Permalink
Update nvim to use the latest captures
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 3, 2024
1 parent 4427d40 commit 72234b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ require("nvim-treesitter.parsers").get_parser_configs().just = {

Don't forget to `:TSInstall` after adding this. With this method you do not have to add this repo as a plugin.

If you run into problems relating to C++ 11 features, try including this in your setup (you may have to `brew install gcc@11`):
## Compatibility

```lua
require"nvim-treesitter.install".compilers = {"gcc-11"}
```
Note that for locals to work correctly, you need a pretty recent version of
`nvim-treesitter` since after the capture names changed. Any version at or after
0.9.3 (currently unreleased) should work.

## Contributing

Expand Down Expand Up @@ -125,6 +125,6 @@ readable.
- [ ] Write the queries
- [x] Implement support for code folding using `nvim-treesitter` (`folds.scm`)
- [x] Write the queries
- [ ] Write Tests
- [x] Write Tests
- [x] Highlight the fish/bash/etc inside recipes (use tree-sitter injections)
- [ ] Fix weirdness around trailing whitespace (don't leave trailing whitespace after the recipe header)
5 changes: 2 additions & 3 deletions build-flavored-queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
from pathlib import Path

REPLACEMENTS = [
("@local.definition", "@definition"),
("@local.reference", "@reference"),
("@local.scope", "@scope"),
# nvim uses `var` instead of variable
("@local.definition.variable", "@local.definiton.var"),
("@constants.builtin.boolean", "@boolean"),
("@keyword.control.conditional", "@conditional"),
("@variable.parameter", "@parameter"),
Expand Down

0 comments on commit 72234b8

Please sign in to comment.