Skip to content

Commit

Permalink
treesitter: Add textobjects for native funcs and constructors (helix-…
Browse files Browse the repository at this point in the history
…editor#9806)

This allows native functions and constructors to be accessible as part
of goto_{next,prev}_func.

Change-Id: Ia1234004e8b38e1c5871331a38fcf4f267da935e
  • Loading branch information
daedroza authored and Vulpesx committed Jun 7, 2024
1 parent 8248772 commit 12184af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/queries/java/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
(method_declaration
body: (_)? @function.inside) @function.around

(constructor_declaration
body: (_) @function.inside) @function.around

(interface_declaration
Expand Down

0 comments on commit 12184af

Please sign in to comment.