-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca0ff7a
commit 72e178c
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Autoclose | ||
|
||
The autoclose plugin automatically closes brackets, quotes and the like, | ||
and it can add indentation between such symbols. The plugin can be configured | ||
on a per-buffer basis via the following options: | ||
|
||
- `autoclose.pairs`: When the first rune in a pair is entered, autoclose will | ||
add the second automatically. Moreover, when the first rune is deleted while | ||
the cursor is on the second, then this second rune is also deleted. | ||
The default value is ```{"\"\"", "''", "``", "()", "{}", "[]"}```. | ||
- `autoclose.newlinePairs`: When `Enter` is pressed between such a pair, | ||
autoclose will put the closing rune on a separate line and add indentation. | ||
The default value is `{"()", "{}", "[]"}`. |