mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 15:34:32 +02:00
Merge pull request #2326 from kdwarn/tagbar-search-method
Add searchmethod setting for tagbar extension
This commit is contained in:
commit
c01977d027
@ -43,7 +43,7 @@ function! airline#extensions#tagbar#currenttag()
|
|||||||
endif
|
endif
|
||||||
" function tagbar#currenttag does not exist, if filetype is not enabled
|
" function tagbar#currenttag does not exist, if filetype is not enabled
|
||||||
if s:airline_tagbar_last_lookup_time != localtime() && exists("*tagbar#currenttag")
|
if s:airline_tagbar_last_lookup_time != localtime() && exists("*tagbar#currenttag")
|
||||||
let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags)
|
let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags, get(g:, 'airline#extensions#tagbar#searchmethod', ''))
|
||||||
let s:airline_tagbar_last_lookup_time = localtime()
|
let s:airline_tagbar_last_lookup_time = localtime()
|
||||||
endif
|
endif
|
||||||
return s:airline_tagbar_last_lookup_val
|
return s:airline_tagbar_last_lookup_val
|
||||||
|
@ -1377,6 +1377,11 @@ tagbar <https://github.com/majutsushi/tagbar>
|
|||||||
let g:airline#extensions#tagbar#flags = 's'
|
let g:airline#extensions#tagbar#flags = 's'
|
||||||
let g:airline#extensions#tagbar#flags = 'p'
|
let g:airline#extensions#tagbar#flags = 'p'
|
||||||
<
|
<
|
||||||
|
* configure how to search for the nearest tag (:help tagbar-statusline) >
|
||||||
|
let g:airline#extensions#tagbar#searchmethod = 'nearest-stl' (default)
|
||||||
|
let g:airline#extensions#tagbar#searchmethod = 'nearest'
|
||||||
|
let g:airline#extensions#tagbar#searchmethod = 'scoped-stl'
|
||||||
|
<
|
||||||
------------------------------------- *airline-tmuxline*
|
------------------------------------- *airline-tmuxline*
|
||||||
tmuxline <https://github.com/edkolev/tmuxline.vim>
|
tmuxline <https://github.com/edkolev/tmuxline.vim>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user