• 404cn@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    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.

    • 404cn@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Sorry, but after type ( it still indent current line to 8 space(not RET), I’m going to report a bug to emacs devel.

      • cradlemann@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        It works fine with (electric-indent-mode -1) and

          :custom
          (go-ts-mode-indent-offset 4)