Files
neovim/runtime/doc
Riley Bruins 3dfb9e6f60 feat(treesitter): include capture id in return value of get_captures_at_pos() #30559
**Problem:** Currently, it is difficult to get node(s)-level metadata
for a capture returned by `get_captures_at_pos()`. This is because it is
stored in `metadata[id]` and we do not have access to the value of `id`,
so to get this value we have to iterate over the keys of `metadata`. See
[this commit](d636229300 (diff-8bd4742121c2f359d0345f3c6c253a58220f1a28670cc4e1c957992232059a6cR16)).

Things would be much simpler if we were given the `id` of the capture so
we could use it to just index `metadata` directly.

**Solution:** Include `id` in the data returned by
`get_captures_at_pos()`
2024-12-11 04:34:24 -08:00
..
2023-07-25 05:07:13 -07:00
2023-10-29 16:02:32 +08:00
2024-10-23 14:13:42 +02:00
2024-05-15 23:19:26 +02:00
2024-10-23 14:13:42 +02:00
2021-09-10 08:48:27 +02:00
2023-06-25 17:14:28 +02:00
2023-10-29 16:02:32 +08:00
2024-09-01 13:01:24 -07:00
2024-04-11 07:39:29 +08:00
2023-05-13 21:33:22 +02:00
2024-12-09 07:59:51 +00:00
2024-03-12 13:51:53 +08:00
2024-02-22 10:07:04 +01:00
2022-10-14 08:01:13 -07:00
2023-11-14 23:29:09 +01:00
2024-11-21 06:50:30 +08:00
2023-11-06 19:03:08 +08:00
2024-01-18 00:14:48 -08:00
2024-04-30 04:30:21 -07:00
2023-01-01 15:05:13 +01:00
2023-06-19 08:40:33 -07:00
2024-09-24 04:46:50 -07:00
2024-11-09 08:10:56 +08:00
2023-08-10 17:28:02 +08:00
2024-04-23 08:20:36 +08:00
2024-05-11 18:14:03 +08:00
2023-04-23 15:22:55 +02:00
2023-01-03 10:07:43 +00:00
2023-06-25 17:14:28 +02:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2021-05-01 22:29:03 -04:00
2023-06-25 17:14:28 +02:00
2021-04-29 09:27:19 -04:00
2023-06-25 17:14:28 +02:00
2024-04-30 05:54:03 +08:00
2021-04-29 20:42:16 -04:00
2023-06-26 11:29:12 +02:00
2023-07-25 05:07:13 -07:00
2021-04-27 09:21:34 -04:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00