mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
indents(go): no indent at all composite_literal, indent at struct_type
This commit is contained in:
parent
ac5456567a
commit
d1ce3db8ea
2 changed files with 13 additions and 5 deletions
|
|
@ -3,7 +3,6 @@
|
|||
(const_declaration)
|
||||
(var_declaration)
|
||||
(type_declaration)
|
||||
(composite_literal)
|
||||
(func_literal)
|
||||
(literal_value)
|
||||
(expression_case)
|
||||
|
|
@ -11,6 +10,7 @@
|
|||
(block)
|
||||
(call_expression)
|
||||
(parameter_list)
|
||||
(struct_type)
|
||||
] @indent
|
||||
|
||||
[
|
||||
|
|
|
|||
|
|
@ -7,8 +7,16 @@ func correct(word string) {
|
|||
select {
|
||||
|
||||
} // <---
|
||||
|
||||
arr := []struct {
|
||||
|
||||
} // <---
|
||||
}
|
||||
|
||||
func test() {
|
||||
cases := []struct {
|
||||
first, second string
|
||||
} {
|
||||
{"Hello", "World"},
|
||||
}
|
||||
|
||||
for range cases {
|
||||
println("random stuff")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue