Skip to content

unindenting 'end' without hitting RET #190

Open

Description

@lijaesela
for k,v in ipairs(arg) do
    stuff()
    end

I noticed that 'end' is only unindented after RET is hit. As such, the situation above happens to me a lot.
This is somewhat bothersome, especially in evil-mode, where I very often will not return after finishing a block like this.

Activity

  1. immerrr commented on Apr 13, 2021

    @immerrr
    Owner

    This is implemented in lua-mode via electric-indent-mode, which has electric-indent-chars configuration variable which is a list that by default has only ?\n (newline). lua-mode adds some characters after which it is almost certain that a line's indentation is going to change (}, ], )).

    Do you have some specific characters in mind that would help in your use case?

  2. iajrz commented on Apr 18, 2021

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions