Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

(if (form)<Enter> does not indent the new line #32

Open

Description

@WalterGR

Repro:

  1. Open a .clj file.
  2. Type the following in the file, at the top level, and press Enter/Return.
(if (form)

Expected:

The cursor is indented on the new line by 2 spaces:

(if (form)
  _

Actual:

The cursor is not indented at all:

(if (form)
_

Strangely, if you instead type the following (i.e. form not enclosed in parens) and press Enter/Return:

(if form

then the new line is indented.

Activity

  1. wingyplus commented on Sep 9, 2016

    @wingyplus
    Contributor

    I think I can solve with simple solution, by add increaseIndentPattern to settings

    '.source.clojure':
      'editor':
        'commentStart': '; '
        'increaseIndentPattern': '\\('

    if @50Wliu agreed, I'll make a pull request.

  2. winstliu commented on Sep 9, 2016

    @winstliu
    Contributor

    As long as you can ensure that there are no unintended side-effects of that change, feel free to make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions