It’s wired after I config go-ts-indent-offset to 4, the indent after } and ) still indent 8 spaces(I think it’s from electric-indent-mode), and content after treesit-check-indent also use 8 spaces, but bind RET to newline-and-indent is a workaround for me now, thanks.
You setup looks not so optimal. Here is mine
It’s wired after I config go-ts-indent-offset to 4, the indent after } and ) still indent 8 spaces(I think it’s from electric-indent-mode), and content after treesit-check-indent also use 8 spaces, but bind RET to newline-and-indent is a workaround for me now, thanks.
Sorry, but after type ( it still indent current line to 8 space(not RET), I’m going to report a bug to emacs devel.
It works fine with
(electric-indent-mode -1)
and:custom (go-ts-mode-indent-offset 4)