Skip to content

Fix adding double brackets, quotes and newline indentation #89

@TheAyes

Description

@TheAyes

So I'm a bit intrigued since it's been like this for quite a while and it seems noone is noticing.

When writing nix expressions in (my case) intellij, I also have to manually place both braces and reindent the newline.

Let's see what I mean...

I have this line right here and would like to add some settings
image

The obvious next step is to open a set or array of attributes with a brace or bracket, but upon doing so, only the one I actually entered is being placed.
image

Usually in any other language (ts for example) it would place both, the opening and closing bracket and put the cursor in between.
image

Next would be to insert a newline to add several properties to that list. upon doing that I'd expect the cursor to be on the next line aswell as one indent further in. but the indenting seems to be missing out.
image

And while these are two very minor issues, they really add up the longer you use it. Especially when using other languages where this actually works as it's supposed to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions