mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
hunks: only enable coc-git extension, if explicitly enabled by the user
As requested by the coc maintainer, this is explicitly disabled, unless
the user configures vim-airline to use it for the branch extension. This
is done, because the `CocAction('extensionStats')` function is known to
be slow and this may cause a slow startup.
This commit is contained in:
@@ -758,6 +758,11 @@ querying how many changes you got. It will return something like '+4 ~2 -1'.
|
||||
<
|
||||
* set hunk count symbols. >
|
||||
let g:airline#extensions#hunks#hunk_symbols = ['+', '~', '-']
|
||||
|
||||
* enable coc-git extension.
|
||||
If not set to 1, vim-airline will not consider to use coc-git for the hunks
|
||||
extension. Make sure to have the coc-git extension enabled. >
|
||||
let g:airline#extensions#hunks#coc_git = 1
|
||||
<
|
||||
------------------------------------- *airline-keymap*
|
||||
vim-keymap
|
||||
|
||||
Reference in New Issue
Block a user