mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 03:18:56 +08:00
update doc.
This commit is contained in:
parent
dc9a527136
commit
47de191a80
|
@ -104,7 +104,7 @@ COMMANDS *airline-commands*
|
||||||
Toggles whitespace detection.
|
Toggles whitespace detection.
|
||||||
|
|
||||||
:AirlineToggle *:AirlineToggle*
|
:AirlineToggle *:AirlineToggle*
|
||||||
Toggle this plugin (e.g. the nice statusline)
|
Toggles between the standard `statusline` or airline.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
CUSTOMIZATION *airline-customization*
|
CUSTOMIZATION *airline-customization*
|
||||||
|
@ -155,7 +155,7 @@ sections which by default host more than one extension.
|
||||||
let g:airline_section_a (the mode/paste indicator)
|
let g:airline_section_a (the mode/paste indicator)
|
||||||
let g:airline_section_b (the fugitive/lawrencium branch indicator)
|
let g:airline_section_b (the fugitive/lawrencium branch indicator)
|
||||||
let g:airline_section_c (bufferline or filename)
|
let g:airline_section_c (bufferline or filename)
|
||||||
let g:airline_section_gutter (csv)
|
let g:airline_section_gutter (readonly, csv)
|
||||||
let g:airline_section_x (tagbar, filetype)
|
let g:airline_section_x (tagbar, filetype)
|
||||||
let g:airline_section_y (fileencoding, fileformat)
|
let g:airline_section_y (fileencoding, fileformat)
|
||||||
let g:airline_section_z (percentage, line number, column number)
|
let g:airline_section_z (percentage, line number, column number)
|
||||||
|
@ -292,12 +292,12 @@ For contributions into the plugin, here are the following guidelines:
|
||||||
is always available (these must be defined in `plugin`, and _not_
|
is always available (these must be defined in `plugin`, and _not_
|
||||||
`autoload` of the other plugin). If it exists, then initialize the
|
`autoload` of the other plugin). If it exists, then initialize the
|
||||||
extension. This ensures that the extension is loaded if and only if the
|
extension. This ensures that the extension is loaded if and only if the
|
||||||
user has the other plugin installed.
|
user has the other plugin installed. Also, a check to
|
||||||
|
`airline#extensions#foo_plugin#enabled` should be performed to allow the
|
||||||
|
user to disable it.
|
||||||
|
|
||||||
b. Extension specific variables should be defined in the extension, e.g.
|
b. Configuration variables for the extension should reside in the
|
||||||
`g:airline#extensions#foo_plugin#bar_variable`. Unfortunately, the
|
extension, e.g. `g:airline#extensions#foo_plugin#bar_variable`.
|
||||||
branch extension does not follow this convention, but for legacy reasons
|
|
||||||
those variables are kept as is.
|
|
||||||
|
|
||||||
See the source of |example.vim| for a working extension.
|
See the source of |example.vim| for a working extension.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user