mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
Add method to definitions in ECMA locals
In Telescope, function declarations were being exposed in the selector, but not method definitions which are also a form of function declaration.
This commit is contained in:
parent
9ff4953f40
commit
81dd6c988c
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@
|
|||
((identifier) @definition.var)
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
(method_definition
|
||||
((property_identifier) @definition.var)
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
; References
|
||||
;------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue