Skip to content

Commit 0dabf6a

Browse files
smheidrichda-x
authored andcommitted
Let universal-ctags check use g:tagbar_ctags_bin
Cf. #313 (comment)
1 parent d045677 commit 0dabf6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/rust/tags.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ let s:checked_ctags = 0
66

77
function! rust#tags#IsUCtags() abort
88
if s:checked_ctags == 0
9-
if system('ctags --version') =~? 'universal ctags'
9+
let l:ctags_bin = get(g:, 'tagbar_ctags_bin', 'ctags')
10+
if system(l:ctags_bin.' --version') =~? 'universal ctags'
1011
let s:ctags_is_uctags = 1
1112
endif
1213
let s:checked_ctags = 1

0 commit comments

Comments
 (0)