Skip to content

golang indent issues when auto-pairs = false #7910

Open
@salarkhan

Description

@salarkhan

Summary

when writing expressions, i expect an outdent when i input the matching pair. in some cases, the closing brace is in line with the content of the expression:
Screenshot 2023-08-11 at 8 35 08 AM

in other cases like creating a function, i expect an indent after opening the brace and hitting enter, yet it does not.

all of these scenarios are resolved if i close the braces immediately, and then fill in the content.

Reproduction Steps

indent.mp4

Helix log

No response

Platform

macOS

Terminal Emulator

kitty 0.28.0

Helix Version

helix 23.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-indentArea: IndentationA-language-supportArea: Support for programming/text languagesC-enhancementCategory: ImprovementsE-easyCall for participation: Experience needed to fix: Easy / not muchE-has-instructionsCall for participation: Has instructions for fixing the issue and opening a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions