mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
Add tag queries for java, kotlin, protobuf and bash (#14349)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
| amber | ✓ | | | | | `amber-lsp` |
|
||||
| astro | ✓ | | | | | `astro-ls` |
|
||||
| awk | ✓ | ✓ | | | | `awk-language-server` |
|
||||
| bash | ✓ | ✓ | ✓ | | ✓ | `bash-language-server` |
|
||||
| bash | ✓ | ✓ | ✓ | ✓ | ✓ | `bash-language-server` |
|
||||
| bass | ✓ | | | | | `bass` |
|
||||
| beancount | ✓ | | | | | `beancount-language-server` |
|
||||
| bibtex | ✓ | | | | | `texlab` |
|
||||
@@ -121,7 +121,7 @@
|
||||
| ink | ✓ | | | | | |
|
||||
| inko | ✓ | ✓ | ✓ | ✓ | | |
|
||||
| janet | ✓ | | ✓ | | ✓ | |
|
||||
| java | ✓ | ✓ | ✓ | | ✓ | `jdtls` |
|
||||
| java | ✓ | ✓ | ✓ | ✓ | ✓ | `jdtls` |
|
||||
| javascript | ✓ | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` |
|
||||
| jinja | ✓ | | | | | |
|
||||
| jjconfig | ✓ | ✓ | ✓ | | | `taplo`, `tombi` |
|
||||
@@ -141,7 +141,7 @@
|
||||
| kconfig | ✓ | | ✓ | | | |
|
||||
| kdl | ✓ | ✓ | ✓ | | | |
|
||||
| koka | ✓ | | ✓ | | | `koka` |
|
||||
| kotlin | ✓ | ✓ | ✓ | | | `kotlin-language-server` |
|
||||
| kotlin | ✓ | ✓ | ✓ | ✓ | | `kotlin-language-server` |
|
||||
| koto | ✓ | ✓ | ✓ | | | `koto-ls` |
|
||||
| latex | ✓ | ✓ | | | | `texlab` |
|
||||
| ld | ✓ | | ✓ | | | |
|
||||
@@ -201,7 +201,7 @@
|
||||
| prisma | ✓ | ✓ | | | | `prisma-language-server` |
|
||||
| prolog | ✓ | | ✓ | | | `swipl` |
|
||||
| properties | ✓ | ✓ | | | | |
|
||||
| protobuf | ✓ | ✓ | ✓ | | | `buf`, `pb`, `protols` |
|
||||
| protobuf | ✓ | ✓ | ✓ | ✓ | | `buf`, `pb`, `protols` |
|
||||
| prql | ✓ | | | | | |
|
||||
| pug | ✓ | | | | | |
|
||||
| purescript | ✓ | ✓ | | | | `purescript-language-server` |
|
||||
|
1
runtime/queries/bash/tags.scm
Normal file
1
runtime/queries/bash/tags.scm
Normal file
@@ -0,0 +1 @@
|
||||
(function_definition name: (word) @definition.function)
|
27
runtime/queries/java/tags.scm
Normal file
27
runtime/queries/java/tags.scm
Normal file
@@ -0,0 +1,27 @@
|
||||
(class_declaration
|
||||
name: (identifier) @definition.class)
|
||||
|
||||
(interface_declaration
|
||||
name: (identifier) @definition.interface)
|
||||
|
||||
(record_declaration
|
||||
name: (identifier) @definition.class)
|
||||
|
||||
(enum_declaration
|
||||
name: (identifier) @defintion.class)
|
||||
|
||||
(method_declaration
|
||||
name: (identifier) @definition.function)
|
||||
|
||||
(constructor_declaration
|
||||
name: (identifier) @definition.function)
|
||||
|
||||
(compact_constructor_declaration
|
||||
name: (identifier) @definition.function)
|
||||
|
||||
(field_declaration
|
||||
declarator: (variable_declarator
|
||||
name: (identifier) @definition.constant))
|
||||
|
||||
(enum_constant
|
||||
name: (identifier) @definition.constant)
|
12
runtime/queries/kotlin/tags.scm
Normal file
12
runtime/queries/kotlin/tags.scm
Normal file
@@ -0,0 +1,12 @@
|
||||
(class_declaration
|
||||
(type_identifier) @definition.class)
|
||||
|
||||
(object_declaration
|
||||
"object" (type_identifier) @definition.class)
|
||||
|
||||
(function_declaration
|
||||
(simple_identifier) @definition.function)
|
||||
|
||||
(property_declaration
|
||||
(variable_declaration
|
||||
(simple_identifier) @definition.constant))
|
11
runtime/queries/protobuf/tags.scm
Normal file
11
runtime/queries/protobuf/tags.scm
Normal file
@@ -0,0 +1,11 @@
|
||||
(message_name (identifier) @definition.class)
|
||||
|
||||
(enum_name (identifier) @definition.class)
|
||||
|
||||
(service_name (identifier) @definition.class)
|
||||
|
||||
(rpc_name (identifier) @definition.function)
|
||||
|
||||
(enum_variant_name (identifier) @definition.constant)
|
||||
|
||||
(field_name (identifier) @definition.constant)
|
Reference in New Issue
Block a user