vim-airline/autoload/airline/extensions
David Briscoe 8209ca7da1 Make branch detection customizable
Instead of requiring each version control plugin to modify airline to
show the current branch, provide a customization function we can check
instead.

Following the example of airline_theme_patch_func, you define the
variable like so:

    let g:airline#extensions#branch#custom_head = 'david#svn#get_branch'

Custom functions should cache their value. They may need an autocmd to
invalidate their cache:

    " Use a buffer-unique group name to prevent clearing autocmds for other
    " buffers.
    exec 'augroup svndavid-'. bufnr("%")
        au!
        autocmd BufWinLeave <buffer> unlet! b:svndavid_branch
    augroup END

This change lets me integrate with vc.vim (I couldn't get VCSCommand
working for svn) or write my own thing for perforce.

Additionally, always load whole file and check for existence.

Instead of determining up front whether various scm plugins are
installed, check for them on use so they can be added after this script
is sourced.

This also mitigates the problem of checking for existence of autoload
functions (which are not loaded by exist()). Since we're checking
root-level functions, they're likely to be loaded once we're using any
part of the plugin.
2018-04-06 09:40:17 -07:00
..
tabline tabline: get correct buffer name 2018-03-06 11:23:38 +01:00
wordcount/formatters Update copyright notifications 2018-01-05 10:37:59 +01:00
ale.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
branch.vim Make branch detection customizable 2018-04-06 09:40:17 -07:00
bufferline.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
capslock.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
commandt.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
csv.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
ctrlp.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
ctrlspace.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
cursormode.vim cursormode: allow custom mode names 2018-01-19 13:28:02 +01:00
default.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
denite.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
eclim.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
example.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
fugitiveline.vim Merge pull request #1634 from Cimbali/master 2018-01-15 08:02:09 +01:00
hunks.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
keymap.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
neomake.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
netrw.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
nrrwrgn.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
obsession.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
po.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
promptline.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
quickfix.vim quickfix: fix options initialization 2018-01-18 18:21:56 +01:00
syntastic.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
tabline.vim removing the hard-coded '[' and ']' around the tabline labels. 2018-02-13 17:48:21 -08:00
tagbar.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
term.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
tmuxline.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
undotree.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
unicode.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
unite.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
vimagit.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
vimtex.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
virtualenv.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
whitespace.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
windowswap.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
wordcount.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
xkblayout.vim Update copyright notifications 2018-01-05 10:37:59 +01:00
ycm.vim Update copyright notifications 2018-01-05 10:37:59 +01:00