mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-28 00:14:36 +02:00
I never find the documentation for writing extensions for some reason.
parent
14407c26fd
commit
2d1feb3245
@ -3,6 +3,12 @@ or describes special configurations.
|
||||
|
||||
Feel free to add your special configuration, if it fixes a need.
|
||||
|
||||
## Create an airline extension
|
||||
|
||||
Read `:help airline-writing-extensions` and [see example.vim](https://github.com/vim-airline/vim-airline/blob/master/autoload/airline/extensions/example.vim) for how you'd create an extension. You could create a PR to add this extension to vim-airline or include it as part of your plugin. Either way, it must be in a `autoload/airline/extensions/` folder.
|
||||
|
||||
To prevent vim-airline from loading your extension when your plugin is not loaded, edit `airline#extensions#load()` in [autoload/airline/extensions.vim](https://github.com/vim-airline/vim-airline/blob/master/autoload/airline/extensions.vim).
|
||||
|
||||
## Dynamically change accent of a vim-airline section (requires [AsyncRun](https://github.com/skywind3000/asyncrun.vim))
|
||||
|
||||
[](https://asciinema.org/a/136184)
|
||||
|
Loading…
x
Reference in New Issue
Block a user