Make spacing and indentation consistent in the documentation, and make the docs easier to read.
This commit is contained in:
parent
bc937639d0
commit
e0036b2f4c
173
doc/ale.txt
173
doc/ale.txt
@ -97,14 +97,14 @@ g:ale_lint_on_text_changed *g:ale_lint_on_text_changed*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1`
|
Default: `1`
|
||||||
|
|
||||||
By default, ALE will check files with the various supported programs when
|
By default, ALE will check files with the various supported programs when
|
||||||
text is changed by using the |TextChanged| event. If this behaviour is not
|
text is changed by using the |TextChanged| event. If this behaviour is not
|
||||||
desired, then this option can be disabled by setting it to 0. The
|
desired, then this option can be disabled by setting it to 0. The
|
||||||
|g:ale_lint_delay| variable will be used to set a |timer_start()| on a delay,
|
|g:ale_lint_delay| variable will be used to set a |timer_start()| on a
|
||||||
and each change to a file will continue to call |timer_stop()| and
|
delay, and each change to a file will continue to call |timer_stop()| and
|
||||||
|timer_start()| repeatedly until the timer ticks by, and the linters will be
|
|timer_start()| repeatedly until the timer ticks by, and the linters will be
|
||||||
run. The checking of files will run in the background, so it should not
|
run. The checking of files will run in the background, so it should not
|
||||||
inhibit editing files.
|
inhibit editing files.
|
||||||
|
|
||||||
|
|
||||||
g:ale_lint_delay *g:ale_lint_delay*
|
g:ale_lint_delay *g:ale_lint_delay*
|
||||||
@ -112,9 +112,9 @@ g:ale_lint_delay *g:ale_lint_delay*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `200`
|
Default: `200`
|
||||||
|
|
||||||
This variable controls the milliseconds delay after which the linters will be
|
This variable controls the milliseconds delay after which the linters will
|
||||||
run after text is changed. This option is only meaningful with the
|
be run after text is changed. This option is only meaningful with the
|
||||||
|g:ale_lint_on_text_changed| variable set to `1`.
|
|g:ale_lint_on_text_changed| variable set to `1`.
|
||||||
|
|
||||||
|
|
||||||
g:ale_lint_on_enter *g:ale_lint_on_enter*
|
g:ale_lint_on_enter *g:ale_lint_on_enter*
|
||||||
@ -122,9 +122,10 @@ g:ale_lint_on_enter *g:ale_lint_on_enter*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1`
|
Default: `1`
|
||||||
|
|
||||||
When this option is set to `1`, the |BufEnter| and |BufRead| events will be
|
When this option is set to `1`, the |BufEnter| and |BufRead| events will be
|
||||||
used to apply linters when buffers are first opened. If this is not desired,
|
used to apply linters when buffers are first opened. If this is not desired,
|
||||||
this variable can be set to `0` in your vimrc file to disable this behaviour.
|
this variable can be set to `0` in your vimrc file to disable this
|
||||||
|
behaviour.
|
||||||
|
|
||||||
|
|
||||||
g:ale_lint_on_save *g:ale_lint_on_save*
|
g:ale_lint_on_save *g:ale_lint_on_save*
|
||||||
@ -132,11 +133,11 @@ g:ale_lint_on_save *g:ale_lint_on_save*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `0`
|
Default: `0`
|
||||||
|
|
||||||
This option will make ALE run the linters whenever a file is saved when it
|
This option will make ALE run the linters whenever a file is saved when it
|
||||||
it set to `1` in your vimrc file. This option can be used in combination
|
it set to `1` in your vimrc file. This option can be used in combination
|
||||||
with the |g:ale_lint_on_enter| and |g:ale_lint_on_text_changed| options
|
with the |g:ale_lint_on_enter| and |g:ale_lint_on_text_changed| options to
|
||||||
to make ALE only check files after that have been saved, if that is what
|
make ALE only check files after that have been saved, if that is what is
|
||||||
is desired.
|
desired.
|
||||||
|
|
||||||
|
|
||||||
g:ale_set_loclist *g:ale_set_loclist*
|
g:ale_set_loclist *g:ale_set_loclist*
|
||||||
@ -144,9 +145,9 @@ g:ale_set_loclist *g:ale_set_loclist*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1`
|
Default: `1`
|
||||||
|
|
||||||
When this option is set to `1`, the |loclist| will be populate with any warnings
|
When this option is set to `1`, the |loclist| will be populate with any
|
||||||
and errors which are found by ALE. This feature can be used to implement
|
warnings and errors which are found by ALE. This feature can be used to
|
||||||
jumping between errors through typical use of |lnext| and |lprev|.
|
implement jumping between errors through typical use of |lnext| and |lprev|.
|
||||||
|
|
||||||
|
|
||||||
g:ale_set_signs *g:ale_set_signs*
|
g:ale_set_signs *g:ale_set_signs*
|
||||||
@ -154,11 +155,11 @@ g:ale_set_signs *g:ale_set_signs*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `has('signs')`
|
Default: `has('signs')`
|
||||||
|
|
||||||
When this option is set to `1`, the |sign| column will be populated with signs
|
When this option is set to `1`, the |sign| column will be populated with
|
||||||
marking where errors and warnings appear in the file. The 'ALEErrorSign'
|
signs marking where errors and warnings appear in the file. The
|
||||||
and 'ALEWarningSign' highlight groups will be used to provide highlighting
|
'ALEErrorSign' and 'ALEWarningSign' highlight groups will be used to provide
|
||||||
for the signs. The text used for signs can be customised with the
|
highlighting for the signs. The text used for signs can be customised with
|
||||||
|g:ale_sign_error| and |g:ale_sign_warning| options.
|
the |g:ale_sign_error| and |g:ale_sign_warning| options.
|
||||||
|
|
||||||
|
|
||||||
g:ale_sign_column_always *g:ale_sign_column_always*
|
g:ale_sign_column_always *g:ale_sign_column_always*
|
||||||
@ -166,10 +167,10 @@ g:ale_sign_column_always *g:ale_sign_column_always*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `0`
|
Default: `0`
|
||||||
|
|
||||||
By default, the sign gutter will disappear when all warnings and errors have
|
By default, the sign gutter will disappear when all warnings and errors have
|
||||||
been fixed for a file. When this option is set to `1`, the sign column will
|
been fixed for a file. When this option is set to `1`, the sign column will
|
||||||
remain open. This can be preferable if you don't want the text in your file
|
remain open. This can be preferable if you don't want the text in your file
|
||||||
to move around as you edit a file.
|
to move around as you edit a file.
|
||||||
|
|
||||||
|
|
||||||
g:ale_sign_error *g:ale_sign_error*
|
g:ale_sign_error *g:ale_sign_error*
|
||||||
@ -177,9 +178,9 @@ g:ale_sign_error *g:ale_sign_error*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'>>'`
|
Default: `'>>'`
|
||||||
|
|
||||||
This string can be changed to change the characters used for the sign gutter
|
This string can be changed to change the characters used for the sign gutter
|
||||||
for lines which at least one error on them. Lines with both errors and
|
for lines which at least one error on them. Lines with both errors and
|
||||||
warnings on them will show the error marker, as errors take precedence.
|
warnings on them will show the error marker, as errors take precedence.
|
||||||
|
|
||||||
|
|
||||||
g:ale_sign_warning *g:ale_sign_warning*
|
g:ale_sign_warning *g:ale_sign_warning*
|
||||||
@ -187,8 +188,8 @@ g:ale_sign_warning *g:ale_sign_warning*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'--'`
|
Default: `'--'`
|
||||||
|
|
||||||
This string can be changed to change the characters used for the sign gutter
|
This string can be changed to change the characters used for the sign gutter
|
||||||
for lines which at least one warning on them.
|
for lines which at least one warning on them.
|
||||||
|
|
||||||
|
|
||||||
g:ale_sign_offset *g:ale_sign_offset*
|
g:ale_sign_offset *g:ale_sign_offset*
|
||||||
@ -196,13 +197,13 @@ g:ale_sign_offset *g:ale_sign_offset*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1000000`
|
Default: `1000000`
|
||||||
|
|
||||||
This variable controls offset from which numeric IDs will be generated
|
This variable controls offset from which numeric IDs will be generated for
|
||||||
for new signs. Signs cannot share the same ID values, so when two Vim plugins
|
new signs. Signs cannot share the same ID values, so when two Vim plugins
|
||||||
set signs at the same time, the IDs have to be configured such that they do
|
set signs at the same time, the IDs have to be configured such that they do
|
||||||
not conflict with one another. If the IDs used by ALE are found to conflict
|
not conflict with one another. If the IDs used by ALE are found to conflict
|
||||||
with some other plugin, this offset value can be changed, and hopefully
|
with some other plugin, this offset value can be changed, and hopefully both
|
||||||
both plugins will work together. See |sign-place| for more information
|
plugins will work together. See |sign-place| for more information on how
|
||||||
on how signs are set.
|
signs are set.
|
||||||
|
|
||||||
|
|
||||||
g:ale_echo_cursor *g:ale_echo_cursor*
|
g:ale_echo_cursor *g:ale_echo_cursor*
|
||||||
@ -210,11 +211,11 @@ g:ale_echo_cursor *g:ale_echo_cursor*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1`
|
Default: `1`
|
||||||
|
|
||||||
When this option is set to `1`, a truncated message will be echoed when
|
When this option is set to `1`, a truncated message will be echoed when a
|
||||||
a cursor is near a warning or error. ALE will attempt to find the warning
|
cursor is near a warning or error. ALE will attempt to find the warning or
|
||||||
or error at a column nearest to the cursor when the cursor is resting
|
error at a column nearest to the cursor when the cursor is resting on a line
|
||||||
on a line which contains a warning or error. This option can be set to `0`
|
which contains a warning or error. This option can be set to `0` to disable
|
||||||
to disable this behaviour.
|
this behaviour.
|
||||||
|
|
||||||
|
|
||||||
g:ale_warn_about_trailing_whitespace *g:ale_warn_about_trailing_whitespace*
|
g:ale_warn_about_trailing_whitespace *g:ale_warn_about_trailing_whitespace*
|
||||||
@ -222,24 +223,26 @@ g:ale_warn_about_trailing_whitespace *g:ale_warn_about_trailing_whitespace*
|
|||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `1`
|
Default: `1`
|
||||||
|
|
||||||
When this option is set to `1`, warnings relating to trailing whitespace on
|
When this option is set to `1`, warnings relating to trailing whitespace on
|
||||||
lines will be shown in signs, the loclist, and echo messages, etc. If these
|
lines will be shown in signs, the loclist, and echo messages, etc. If these
|
||||||
errors are found to be too irritating while edits are being made, and
|
errors are found to be too irritating while edits are being made, and you
|
||||||
you have configured Vim to automatically remove trailing whitespace, then
|
have configured Vim to automatically remove trailing whitespace, then you
|
||||||
you can disable these warnings for some linters by setting this option to `0`.
|
can disable these warnings for some linters by setting this option to `0`.
|
||||||
|
|
||||||
|
Not all linters may respect this option. If a linter does not, please file a
|
||||||
|
bug report, and it may be possible to add such support.
|
||||||
|
|
||||||
Not all linters may respect this option. If a linter does not, please
|
|
||||||
file a bug report, and it may be possible to add such support.
|
|
||||||
|
|
||||||
g:ale_statusline_format *g:ale_statusline_format*
|
g:ale_statusline_format *g:ale_statusline_format*
|
||||||
|
|
||||||
Type: |List|
|
Type: |List|
|
||||||
Default: `['%d error(s)', '%d warning(s)', 'OK']`
|
Default: `['%d error(s)', '%d warning(s)', 'OK']`
|
||||||
|
|
||||||
This variable defines the format of |`ALEGetStatusLine()`| output.
|
This variable defines the format of |`ALEGetStatusLine()`| output.
|
||||||
- The 1st element is for errors
|
- The 1st element is for errors
|
||||||
- The 2nd element is for warnings
|
- The 2nd element is for warnings
|
||||||
- The 3rd element is for when no errors are detected
|
- The 3rd element is for when no errors are detected
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
4. Linter Specific Options *ale-linter-options*
|
4. Linter Specific Options *ale-linter-options*
|
||||||
@ -255,8 +258,9 @@ g:ale_javascript_eslint_executable *g:ale_javascript_eslint_executable*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'eslint'`
|
Default: `'eslint'`
|
||||||
|
|
||||||
This variable can be changed to change the path to eslint. If you have
|
This variable can be changed to change the path to eslint. If you have
|
||||||
eslint_d installed, you can set this option to use eslint_d instead.
|
eslint_d installed, you can set this option to use eslint_d instead.
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
4.2. phpcs *ale-linter-options-phpcs*
|
4.2. phpcs *ale-linter-options-phpcs*
|
||||||
@ -266,9 +270,10 @@ g:ale_php_phpcs_standard *g:ale_php_phpcs_standard*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `''`
|
Default: `''`
|
||||||
|
|
||||||
This variable can be set to specify the coding standard used by phpcs. If
|
This variable can be set to specify the coding standard used by phpcs. If no
|
||||||
no coding standard is specified, phpcs will default to checking against the
|
coding standard is specified, phpcs will default to checking against the
|
||||||
PEAR coding standard, or the standard you have set as the default.
|
PEAR coding standard, or the standard you have set as the default.
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
4.3. c-gcc *ale-linter-options-c-gcc*
|
4.3. c-gcc *ale-linter-options-c-gcc*
|
||||||
@ -278,7 +283,8 @@ g:ale_c_gcc_options *g:ale_c_gcc_options*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'-Wall'`
|
Default: `'-Wall'`
|
||||||
|
|
||||||
This variable can be change to modify flags given to gcc.
|
This variable can be change to modify flags given to gcc.
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
4.4. cpp-gcc *ale-linter-options-cpp-gcc*
|
4.4. cpp-gcc *ale-linter-options-cpp-gcc*
|
||||||
@ -288,7 +294,8 @@ g:ale_cpp_gcc_options *g:ale_cpp_gcc_options*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'-Wall'`
|
Default: `'-Wall'`
|
||||||
|
|
||||||
This variable can be changed to modify flags given to gcc.
|
This variable can be changed to modify flags given to gcc.
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
4.5. shell *ale-linter-options-shell*
|
4.5. shell *ale-linter-options-shell*
|
||||||
@ -298,10 +305,11 @@ g:ale_linters_sh_shell_default_shell *g:ale_linters_sh_shell_default_shell*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: The current shell (`$SHELL`) or `'bash'` if that cannot be read.
|
Default: The current shell (`$SHELL`) or `'bash'` if that cannot be read.
|
||||||
|
|
||||||
When ALE runs the linter for shells with the `-n` flag, it will attempt to
|
When ALE runs the linter for shells with the `-n` flag, it will attempt to
|
||||||
read the shell from the shebang (`#!`) line from the shell script to
|
read the shell from the shebang (`#!`) line from the shell script to
|
||||||
determine the shell program to run. When this detection fails, this variable
|
determine the shell program to run. When this detection fails, this variable
|
||||||
will be used instead.
|
will be used instead.
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
4.6. fortran-gcc *ale-linter-options-fortran-gcc*
|
4.6. fortran-gcc *ale-linter-options-fortran-gcc*
|
||||||
@ -311,7 +319,8 @@ g:ale_fortran_gcc_options *g:ale_fortran_gcc_options*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'-Wall'`
|
Default: `'-Wall'`
|
||||||
|
|
||||||
This variable can be changed to modify flags given to gcc.
|
This variable can be changed to modify flags given to gcc.
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
4.7. html-tidy *ale-linter-options-html-tidy*
|
4.7. html-tidy *ale-linter-options-html-tidy*
|
||||||
@ -321,7 +330,7 @@ g:ale_html_tidy_executable *g:ale_html_tidy_executable*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'tidy'`
|
Default: `'tidy'`
|
||||||
|
|
||||||
This variable can be changed to change the path to tidy.
|
This variable can be changed to change the path to tidy.
|
||||||
|
|
||||||
|
|
||||||
g:ale_html_tidy_args *g:ale_html_tidy_args*
|
g:ale_html_tidy_args *g:ale_html_tidy_args*
|
||||||
@ -329,16 +338,16 @@ g:ale_html_tidy_args *g:ale_html_tidy_args*
|
|||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'-q -e -language en'`
|
Default: `'-q -e -language en'`
|
||||||
|
|
||||||
This variable can be changed to change the arguments provided to the
|
This variable can be changed to change the arguments provided to the
|
||||||
executable.
|
executable.
|
||||||
|
|
||||||
ALE will attempt to automatically detect the appropriate file encoding to
|
ALE will attempt to automatically detect the appropriate file encoding to
|
||||||
provide to html-tidy, and fall back to UTF-8 when encoding detection fails.
|
provide to html-tidy, and fall back to UTF-8 when encoding detection fails.
|
||||||
|
|
||||||
|
The recognized file encodings are as follows: ascii, big5, cp1252 (win1252),
|
||||||
|
cp850 (ibm858), cp932 (shiftjis), iso-2022-jp (iso-2022), latin1, macroman
|
||||||
|
(mac), sjis (shiftjis), utf-16le, utf-16, utf-8
|
||||||
|
|
||||||
The recognized file encodings are as follows:
|
|
||||||
ascii, big5, cp1252 (win1252), cp850 (ibm858), cp932 (shiftjis),
|
|
||||||
iso-2022-jp (iso-2022), latin1, macroman (mac), sjis (shiftjis), utf-16le,
|
|
||||||
utf-16, utf-8
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
5. API *ale-api*
|
5. API *ale-api*
|
||||||
@ -349,6 +358,7 @@ ALELint(delay) *ALELint()*
|
|||||||
The linters will always be run in the background. Calling this function
|
The linters will always be run in the background. Calling this function
|
||||||
again from the same buffer
|
again from the same buffer
|
||||||
|
|
||||||
|
|
||||||
ALEAddLinter(filetype, linter) *ALEAddLinter()*
|
ALEAddLinter(filetype, linter) *ALEAddLinter()*
|
||||||
Given a |String| for a filetype and a |Dictionary| Describing a linter
|
Given a |String| for a filetype and a |Dictionary| Describing a linter
|
||||||
configuration, add a linter for the given filetype. The dictionaries each
|
configuration, add a linter for the given filetype. The dictionaries each
|
||||||
@ -425,16 +435,19 @@ ALEGetLinters(filetype) *ALEGetLinters()*
|
|||||||
Return all of linters configured for a given filetype as a |List| of
|
Return all of linters configured for a given filetype as a |List| of
|
||||||
|Dictionary| values in the format specified by |ALEAddLinter()|.
|
|Dictionary| values in the format specified by |ALEAddLinter()|.
|
||||||
|
|
||||||
|
|
||||||
ALEGetStatusLine() *ALEGetStatusLine()*
|
ALEGetStatusLine() *ALEGetStatusLine()*
|
||||||
Return a formatted string that can be added to the statusline.
|
Return a formatted string that can be added to the statusline.
|
||||||
The output's format is defined in |`g:ale_statusline_format`|.
|
The output's format is defined in |`g:ale_statusline_format`|.
|
||||||
To enable it, the following should be present in your |statusline| settings: >
|
To enable it, the following should be present in your |statusline| settings: >
|
||||||
%{ALEGetStatusLine()}
|
%{ALEGetStatusLine()}
|
||||||
|
|
||||||
|
|
||||||
g:ale#util#stdin_wrapper *g:ale#util#stdin_wrapper*
|
g:ale#util#stdin_wrapper *g:ale#util#stdin_wrapper*
|
||||||
This variable names a wrapper script for sending stdin input to programs
|
This variable names a wrapper script for sending stdin input to programs
|
||||||
which cannot accept input via stdin. See |ALEAddLinter| for more.
|
which cannot accept input via stdin. See |ALEAddLinter| for more.
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
6. Contact *ale-contact*
|
6. Contact *ale-contact*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user