Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .tsqueryrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,15 @@
"comment": "Captures block comments",
"comment.inclusive": "Captures line comments",
"elixir": "Captures Elixir expressions",
"function": "Captures function identifiers",
"heex": "Captures HEEx templates",
"identifier": "Captures all identifiers (i.e. variables, functions, atoms, keywords, and module attributes)",
"quoted_atom": "Captures quoted atoms",
"sigil_curly": "Captures sigils using curly bracket delimiters",
"sigil_round": "Captures sigils using round bracket delimiters",
"sigil_square": "Captures sigils using square bracket delimiters",
"sigil_quote": "Captures sigils using quote mark delimiters",
"slot": "Captures HEEx slot identifiers",
"string": "Captures strings"
},
"redactions": {
Expand Down
2 changes: 2 additions & 0 deletions languages/eex/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tab_size = 2
scope_opt_in_language_servers = [
"elixir-ls",
"expert",
"dexter",
"next-ls",
"lexical",
]
Expand All @@ -25,6 +26,7 @@ scope_opt_in_language_servers = [
opt_into_language_servers = [
"elixir-ls",
"expert",
"dexter",
"next-ls",
"lexical",
]
16 changes: 14 additions & 2 deletions languages/heex/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tab_size = 2
scope_opt_in_language_servers = [
"elixir-ls",
"expert",
"dexter",
"next-ls",
"lexical",
"tailwindcss-language-server",
Expand All @@ -27,6 +28,7 @@ scope_opt_in_language_servers = [
opt_into_language_servers = [
"elixir-ls",
"expert",
"dexter",
"next-ls",
"lexical",
]
Expand All @@ -35,5 +37,15 @@ opt_into_language_servers = [
completion_query_characters = ["-"]
opt_into_language_servers = ["tailwindcss-language-server"]

[overrides.identifier]
word_characters = ["!", "?", "@"]
[overrides.function]
word_characters = ["!", "?"]
opt_into_language_servers = [
"elixir-ls",
"expert",
"dexter",
"next-ls",
"lexical",
]

[overrides.slot]
word_characters = ["!", "?"]
11 changes: 6 additions & 5 deletions languages/heex/overrides.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
(quoted_attribute_value)
] @string

; Function and slot identifiers
[
(function)
(slot_name)
] @identifier
; Function identifiers
(function) @function

; Slot identifiers
(slot_name) @slot

; Elixir expressions
[
(expression)
(directive)
(component_name)
] @elixir
Loading