mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
30
runtime/queries/gleam/indents.scm
Normal file
30
runtime/queries/gleam/indents.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
; Gleam indents similar to Rust and JavaScript
|
||||
[
|
||||
(anonymous_function)
|
||||
(assert)
|
||||
(case)
|
||||
(case_clause)
|
||||
(constant)
|
||||
(external_function)
|
||||
(function)
|
||||
(let)
|
||||
(list)
|
||||
(constant)
|
||||
(function)
|
||||
(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 "|>"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue