Skip to content

Annoying indentation behavior for Go switches and YAML #16131

Description

@infastin

Summary

After 3013c10 commit Go switches are indented as follows:

switch num {
// cursor is here (ok)
    // was here (not ok)
case 1:
// cursor is still here (not ok)
    // but should be here (previous behavior)
}

For YAML it is even more annoying:

hello:
// cursor is here (not ok)
  // but should be here (previous behavior)

No amount of changes to indents.scm has allowed me to bring the previous behavior.

Reproduction Steps

No response

Helix log

No response

Platform

Linux

Terminal Emulator

st

Installation Method

flake

Helix Version

079a789

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions