Fix the headings and table of contents.

This commit is contained in:
w0rp 2016-10-25 10:44:50 +01:00 committed by GitHub
parent 2bcb21f350
commit 0fbf7bcc99

View File

@ -17,19 +17,19 @@ In other words, this plugin allows you to lint while you type.
## Table of Contents ## Table of Contents
1. [Supported Languages and Tools](#supported-languages) 1. [Supported Languages and Tools](#supported-languages)
2. [Usage](#usage) 2. [Usage](#usage)
3. [Installation](#installation) 3. [Installation](#installation)
3.1. [Installation with Pathogen](#installation-with-pathogen) 1. [Installation with Pathogen](#installation-with-pathogen)
3.2. [Installation with Vundle](#installation-with-vundle) 2. [Installation with Vundle](#installation-with-vundle)
3.3. [Manual Installation](#manual-installation) 3. [Manual Installation](#manual-installation)
4. [FAQ](#faq) 4. [FAQ](#faq)
4.1. [How do I disable particular linters?](#faq-disable-linters) 1. [How do I disable particular linters?](#faq-disable-linters)
4.2. [How can I keep the sign gutter open?](#faq-disable-linters) 2. [How can I keep the sign gutter open?](#faq-disable-linters)
4.3. [How can I change the signs ALE uses?](#faq-change-signs) 3. [How can I change the signs ALE uses?](#faq-change-signs)
4.4. [How can I show errors or warnings in my statusline?](#faq-statusline) 4. [How can I show errors or warnings in my statusline?](#faq-statusline)
4.5. [How can I change the format for echo messages?](#faq-echo-format) 5. [How can I change the format for echo messages?](#faq-echo-format)
4.6. [How can I execute some code when ALE stops linting?](#faq-autocmd) 6. [How can I execute some code when ALE stops linting?](#faq-autocmd)
<a name="supported-languages"></a> <a name="supported-languages"></a>
@ -114,7 +114,7 @@ stored in `%USERPROFILE%\_vimrc`.
<a name="installation-with-pathogen"></a> <a name="installation-with-pathogen"></a>
### 3.1. Installation with Pathogen ### 3.i. Installation with Pathogen
To install this module with [Pathogen](https://github.com/tpope/vim-pathogen), To install this module with [Pathogen](https://github.com/tpope/vim-pathogen),
you should clone this repository to your bundle directory, and ensure you should clone this repository to your bundle directory, and ensure
@ -128,7 +128,7 @@ git clone https://github.com/w0rp/ale.git
<a name="installation-with-vundle"></a> <a name="installation-with-vundle"></a>
### 3.2. Installation with Vundle ### 3.ii. Installation with Vundle
You can install this plugin using [Vundle](https://github.com/VundleVim/Vundle.vim) You can install this plugin using [Vundle](https://github.com/VundleVim/Vundle.vim)
by using the path on GitHub for this repository. by using the path on GitHub for this repository.
@ -141,7 +141,7 @@ See the Vundle documentation for more information.
<a name="manual-installation"></a> <a name="manual-installation"></a>
### 3.3. Manual Installation ### 3.iii. Manual Installation
For installation without a package manager, you can clone this git repository For installation without a package manager, you can clone this git repository
into a bundle directory as with pathogen, and add the repository to your into a bundle directory as with pathogen, and add the repository to your
@ -180,7 +180,7 @@ installation method.
<a name="faq-disable-linters"></a> <a name="faq-disable-linters"></a>
### 4.1. How do I disable particular linters? ### 4.i. How do I disable particular linters?
By default, all available tools for all supported languages will be run. By default, all available tools for all supported languages will be run.
If you want to only select a subset of the tools, simply create a If you want to only select a subset of the tools, simply create a
@ -204,7 +204,7 @@ in each directory corresponds to the name of a particular linter.
<a name="faq-keep-signs"></a> <a name="faq-keep-signs"></a>
### 4.2. How can I keep the sign gutter open? ### 4.ii. How can I keep the sign gutter open?
You can keep the sign gutter open at all times by setting the You can keep the sign gutter open at all times by setting the
`g:ale_sign_column_always` to 1 `g:ale_sign_column_always` to 1
@ -215,7 +215,7 @@ let g:ale_sign_column_always = 1
<a name="faq-change-signs"></a> <a name="faq-change-signs"></a>
### 4.3. How can I change the signs ALE uses? ### 4.iii. How can I change the signs ALE uses?
Use these options to specify what text should be used for signs: Use these options to specify what text should be used for signs:
@ -226,7 +226,7 @@ let g:ale_sign_warning = '--'
<a name="faq-statusline"></a> <a name="faq-statusline"></a>
### 4.4. How can I show errors or warnings in my statusline? ### 4.iv. How can I show errors or warnings in my statusline?
You can use `ALEGetStatusLine()` to integrate ALE into vim statusline. You can use `ALEGetStatusLine()` to integrate ALE into vim statusline.
To enable it, you should have in your `statusline` settings To enable it, you should have in your `statusline` settings
@ -253,7 +253,7 @@ let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
<a name="faq-echo-format"></a> <a name="faq-echo-format"></a>
### 4.5. How can I change the format for echo messages? ### 4.v. How can I change the format for echo messages?
There are 3 global options that allow customizing the echoed message. There are 3 global options that allow customizing the echoed message.
@ -278,7 +278,7 @@ Will give you:
<a name="faq-autocmd"></a> <a name="faq-autocmd"></a>
### 4.6. How can I execute some code when ALE stops linting? ### 4.vi. How can I execute some code when ALE stops linting?
ALE runs its own [autocmd](http://vimdoc.sourceforge.net/htmldoc/autocmd.html) ALE runs its own [autocmd](http://vimdoc.sourceforge.net/htmldoc/autocmd.html)
event whenever has a linter has been successfully executed and processed. This event whenever has a linter has been successfully executed and processed. This