Commit graph

9 commits

Author SHA1 Message Date
Evan Phoenix
28f84d69e3 fix(go): Indent on type switch case properly 2023-03-03 23:36:51 -05:00
Amaan Qureshi
a3213e3dd7 fix(go): apply indents in a communication case in a select statement 2023-02-24 01:37:58 -08:00
Stephan Seitz
d1ce3db8ea indents(go): no indent at all composite_literal, indent at struct_type 2022-08-15 13:34:16 -07:00
Stephan Seitz
ac5456567a indens(go): fix issue 3288
Fixes #3288
2022-08-15 13:34:16 -07:00
Stephan Seitz
27424a2040 indents(go): improve @branch rules
- Don't branch at `case`
- Let `import_spec_list`/`var_declaration` behave like
  `const_declaration`

Fixes #2166
2022-08-05 12:32:20 -07:00
kiyan
6eb35103d0 fix(go): indent const declaration
https://github.com/nvim-treesitter/nvim-treesitter/issues/3104
2022-07-08 00:14:29 +02:00
Akin Sowemimo
bca65c068b test(go): add cases for newlines de-indentation
test(go): combine new indent test cases

test(go): add incorrect indent after var closing )

this case does not work correctly already so add that in since this PR
does not address that case

test(go): set current lines in indent test

test(go): simplify test case
2022-04-18 14:11:02 +02:00
Stephan Seitz
9f25d66f7d indents(go): perform some changes as go fmt dictates 2022-02-05 18:54:55 +01:00
Stephan Seitz
5d954f1812 indents(go): add tests 2022-02-05 18:54:55 +01:00