mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
Add Gleam indents
This commit is contained in:
parent
ce7aaa6720
commit
da6132ebbe
1 changed files with 21 additions and 0 deletions
21
queries/gleam/indents.scm
Normal file
21
queries/gleam/indents.scm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
; Gleam indents similar to Rust and JavaScript
|
||||
[
|
||||
(case)
|
||||
(case_clause)
|
||||
(constant)
|
||||
(expression_group)
|
||||
(function)
|
||||
(let)
|
||||
(list)
|
||||
(public_function)
|
||||
(public_opaque_type_definition)
|
||||
(public_type_definition)
|
||||
(tuple)
|
||||
(type_definition)
|
||||
] @indent
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
] @indent_end @branch
|
||||
Loading…
Add table
Add a link
Reference in a new issue