mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Export tagbar#currentfile() function
This commit is contained in:
@@ -3747,6 +3747,17 @@ function! tagbar#currenttag(fmt, default, ...) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" tagbar#currentfile() {{{2
|
||||
function! tagbar#currentfile() abort
|
||||
let filename = ''
|
||||
|
||||
if !empty(s:known_files.getCurrent())
|
||||
let filename = fnamemodify(s:known_files.getCurrent().fpath, ':t')
|
||||
endif
|
||||
|
||||
return filename
|
||||
endfunction
|
||||
|
||||
" tagbar#gettypeconfig() {{{2
|
||||
function! tagbar#gettypeconfig(type) abort
|
||||
if !s:Init(1)
|
||||
|
||||
Reference in New Issue
Block a user