nvim-treesitter/runtime/queries/starlark
Jade Lovelace 7815bfb108 feat(starlark): build targets as locals
Problem: I have very big BUILD files I want to navigate quickly.
I have Telescope, so I can use `:Telescope treesitter` for an outline,
but build targets aren't emitted as definitions.

Solution: Add a query that catches build targets.

One thing I'm unclear on is:
- I want to filter to just build targets.
- Build targets are absolutely not any of the mentioned types in the
  CONTRIBUTING file.
- Build targets do not actually create identifiers in buck2/bazel: they
  create objects which are observable to the outside world and which the
  user generally *cares* about, but they aren't in the same namespace as
  normal identifiers.

  This means that they *especially* don't fit into any of the existing
  categories.

I would like guidance as to whether this is the right approach.
2025-10-13 18:21:01 -07:00
..
folds.scm feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00
highlights.scm feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00
indents.scm feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00
injections.scm feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00
locals.scm feat(starlark): build targets as locals 2025-10-13 18:21:01 -07:00