Skip to content

Commit

Permalink
Ran into an error trying to use function handling
Browse files Browse the repository at this point in the history
 - this fixes that error
  • Loading branch information
jaresty committed Oct 18, 2024
1 parent 899770b commit 028ff00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lang/elixir/elixir.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def code_insert_function(text: str, selection: str):
def code_default_function(text: str):
result = "def {}".format(
actions.user.formatted_text(
text, settings.get("user.code_protected_function_formatter")
text, settings.get("user.code_private_function_formatter")
)
)
actions.user.code_insert_function(result, None)
Expand Down
8 changes: 4 additions & 4 deletions lang/elixir/elixir.talon
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ tag(): user.code_operators_math
tag(): user.code_operators_lambda

settings():
user.code_private_function_formatter = "snake_case"
user.code_public_function_formatter = "snake_case"
user.code_private_variable_formatter = "snake_case"
user.code_public_variable_formatter = "snake_case"
user.code_private_function_formatter = "SNAKE_CASE"
user.code_public_function_formatter = "SNAKE_CASE"
user.code_private_variable_formatter = "SNAKE_CASE"
user.code_public_variable_formatter = "SNAKE_CASE"

# Elixir-specific grammars
state def: "def "
Expand Down

0 comments on commit 028ff00

Please sign in to comment.