mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 15:23:55 +08:00
parent
dc1b607f56
commit
31e01612f3
|
@ -40,6 +40,10 @@ function! airline#extensions#tagbar#currenttag()
|
|||
unlet! a
|
||||
let s:init=1
|
||||
endif
|
||||
let cursize = getfsize(fnamemodify(bufname('%'), ':p'))
|
||||
if cursize > 0 && cursize > get(g:, 'airline#extensions#tagbar#max_filesize', 1024 * 1024)
|
||||
return ''
|
||||
endif
|
||||
let flags = get(g:, 'airline#extensions#tagbar#flags', '')
|
||||
" function tagbar#currenttag does not exist, if filetype is not enabled
|
||||
if s:airline_tagbar_last_lookup_time != localtime() && exists("*tagbar#currenttag")
|
||||
|
|
|
@ -1468,6 +1468,10 @@ tagbar <https://github.com/majutsushi/tagbar>
|
|||
let g:airline#extensions#tagbar#searchmethod = 'nearest-stl' (default)
|
||||
let g:airline#extensions#tagbar#searchmethod = 'nearest'
|
||||
let g:airline#extensions#tagbar#searchmethod = 'scoped-stl'
|
||||
|
||||
* configure max filesize, after which to skip loading the extension
|
||||
If the file is larger, tags won't be displayed for performance reasons >
|
||||
let g:airline#extensions#tagbar#max_filesize = 1024*1024 (default)
|
||||
<
|
||||
------------------------------------- *airline-taglist*
|
||||
taglist <https://github.com/yegappan/taglist>
|
||||
|
|
Loading…
Reference in New Issue
Block a user