forked from liuchengxu/space-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split formatting from programming layer (liuchengxu#265)
The functionality of formatting the code is worthy of a single layer.
- Loading branch information
1 parent
ef44344
commit 09496ed
Showing
3 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Formatting layer | ||
|
||
## Table of Contents | ||
|
||
<!-- vim-markdown-toc GFM --> | ||
|
||
* [Description](#description) | ||
* [Install](#install) | ||
* [Key Bindings](#key-bindings) | ||
* [Related Projects](#related-projects) | ||
|
||
<!-- vim-markdown-toc --> | ||
|
||
## Description | ||
|
||
This layer adds support for formatting the code. | ||
|
||
## Install | ||
|
||
To use this configuration layer, add it to your `~/.spacevim`. | ||
|
||
## Key Bindings | ||
|
||
Key Binding | Mode | Description | ||
:---: | :---: | :---: | ||
<kbd>, =</kbd> | Normal | Format the code | ||
|
||
## Related Projects | ||
|
||
- [neoformat](https://github.com/sbdchd/neoformat) | ||
- [vim-autoformat](https://github.com/Chiel92/vim-autoformat) |
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 @@ | ||
nnoremap <LocalLeader>= :Autoformat<CR> |
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 @@ | ||
MP 'Chiel92/vim-autoformat', { 'on': 'Autoformat' } |