nvim-treesitter/runtime/queries/gleam/indents.scm
2025-09-28 18:39:09 -07:00

28 lines
483 B
Scheme

; Gleam indents similar to Rust and JavaScript
[
(anonymous_function)
(assert)
(case)
(case_clause)
(constant)
(external_function)
(function)
(let)
(list)
(type_definition)
(type_alias)
(todo)
(tuple)
(unqualified_imports)
] @indent.begin
[
")"
"]"
"}"
] @indent.end @indent.branch
; Gleam pipelines are not indented, but other binary expression chains are
((binary_expression
operator: _ @_operator) @indent.begin
(#not-eq? @_operator "|>"))