mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -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)
|
(const_declaration)
|
||||||
(var_declaration)
|
(var_declaration)
|
||||||
(type_declaration)
|
(type_declaration)
|
||||||
(composite_literal)
|
|
||||||
(func_literal)
|
(func_literal)
|
||||||
(literal_value)
|
(literal_value)
|
||||||
(expression_case)
|
(expression_case)
|
||||||
|
|
@ -11,6 +10,7 @@
|
||||||
(block)
|
(block)
|
||||||
(call_expression)
|
(call_expression)
|
||||||
(parameter_list)
|
(parameter_list)
|
||||||
|
(struct_type)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,16 @@ func correct(word string) {
|
||||||
select {
|
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