neovim/runtime
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
..
autoload vim-patch:b66cac1: runtime(typst): add definition lists to formatlistpat, update maintainer 2024-12-10 08:06:35 +01:00
colors
compiler vim-patch:b66cac1: runtime(typst): add definition lists to formatlistpat, update maintainer 2024-12-10 08:06:35 +01:00
doc feat(treesitter): include capture id in return value of get_captures_at_pos() #30559 2024-12-11 04:34:24 -08:00
ftplugin vim-patch:b66cac1: runtime(typst): add definition lists to formatlistpat, update maintainer 2024-12-10 08:06:35 +01:00
indent vim-patch:b66cac1: runtime(typst): add definition lists to formatlistpat, update maintainer 2024-12-10 08:06:35 +01:00
keymap
lua feat(treesitter): include capture id in return value of get_captures_at_pos() #30559 2024-12-11 04:34:24 -08:00
pack/dist/opt vim-patch:5e7f43b: runtime(termdebug): allow to use decimal signs (#31149) 2024-11-10 09:24:27 +08:00
plugin vim-patch:59834ba: runtime(matchparen): Add matchparen_disable_cursor_hl config option 2024-11-05 08:31:19 +01:00
queries fix(treesitter): update queries 2024-11-22 09:39:45 +01:00
scripts
spell
syntax vim-patch:b66cac1: runtime(typst): add definition lists to formatlistpat, update maintainer 2024-12-10 08:06:35 +01:00
tutor feat(tutor): give hints to satisfy the line checker #30952 2024-10-27 06:50:17 -07:00
CMakeLists.txt
delmenu.vim
filetype.lua fix(filetype): make filetype detection work with :doautocmd (#31470) 2024-12-06 20:57:21 +08:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
makemenu.vim
menu.vim
neovim.ico
nvim.appdata.xml
nvim.desktop
nvim.png
optwin.vim vim-patch:9.1.0911: Variable name for 'messagesopt' doesn't match short name 2024-12-08 07:06:16 +08:00
synmenu.vim
windows_icon.rc