Skip to content

backport fix(treesitter): use metadata in :EditQuery captures #37116#37170

Merged
clason merged 1 commit intoneovim:release-0.11from
PeterCardenas:backport-37116-to-release-0.11
Dec 31, 2025
Merged

backport fix(treesitter): use metadata in :EditQuery captures #37116#37170
clason merged 1 commit intoneovim:release-0.11from
PeterCardenas:backport-37116-to-release-0.11

Conversation

@PeterCardenas
Copy link
Contributor

@PeterCardenas PeterCardenas commented Dec 31, 2025

backport #37116

Problem:
When the #offset! directive is used with :EditQuery, the query does not take the offset into consideration when creating the extmark to preview the capture.

Solution:
Use the capture metadata to modify the node range before creating the extmark.

Problem:
When the `#offset!` directive is used with `:EditQuery`, the query does not take the offset into consideration when creating the extmark to preview the capture.

Solution:
Use the capture metadata to modify the node range before creating the extmark.
@PeterCardenas PeterCardenas force-pushed the backport-37116-to-release-0.11 branch from d30f413 to 6776a77 Compare December 31, 2025 04:03
@PeterCardenas PeterCardenas changed the title fix(treesitter): use metadata in :EditQuery captures #37116 backport fix(treesitter): use metadata in :EditQuery captures #37116 Dec 31, 2025
@clason clason merged commit 46f569a into neovim:release-0.11 Dec 31, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants