mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 04:17:43 +03:00
Add textobject for entries/elements of list-like things (#8150)
This commit is contained in:
parent
47ef9f0ca2
commit
1abb64e48d
17 changed files with 145 additions and 3 deletions
23
runtime/queries/graphql/textobjects.scm
Normal file
23
runtime/queries/graphql/textobjects.scm
Normal file
|
@ -0,0 +1,23 @@
|
|||
(type_definition) @class.around
|
||||
|
||||
(executable_definition) @function.around
|
||||
|
||||
(arguments_definition
|
||||
(input_value_definition) @parameter.inside @parameter.movement)
|
||||
|
||||
(arguments
|
||||
(argument) @parameter.inside @parameter.movement)
|
||||
|
||||
(selection
|
||||
[(field) (fragment_spread)] @entry.around)
|
||||
|
||||
(selection
|
||||
(field (selection_set) @entry.inside))
|
||||
|
||||
(field_definition
|
||||
(_) @entry.inside) @entry.around
|
||||
|
||||
(input_fields_definition
|
||||
(input_value_definition ) @entry.around)
|
||||
|
||||
(enum_value) @entry.around
|
Loading…
Add table
Add a link
Reference in a new issue