Skip to content

Commit 9a29425

Browse files
committed
Enable auto-insertion of closing braces
1 parent 792c11d commit 9a29425

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The feature is disabled by default since the functionality is rather limited for now.
99
Feel free to comment your feedback at [issue #87](https://github.com/NixOS/nix-idea/issues/87).
1010
- Support for simple spell checking
11-
- Automatic insertion of closing quotes
11+
- Automatic insertion of closing quotes and braces
1212
- Support for *Code | Move Element Left/Right* (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>←/→</kbd>)
1313
- Support for IDEA 2025.1
1414

src/main/java/org/nixos/idea/lang/NixBraceMatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class NixBraceMatcher implements PairedBraceMatcher {
3030

3131
@Override
3232
public boolean isPairedBracesAllowedBeforeType(@NotNull IElementType lbraceType, @Nullable IElementType contextType) {
33-
return false;
33+
return true;
3434
}
3535

3636
@Override

0 commit comments

Comments
 (0)