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:
Christian Brabandt
2020-04-29 16:57:20 +02:00
parent e7f78bbc0f
commit 48064e24d5
2 changed files with 11 additions and 16 deletions

View File

@@ -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