[Tags] Require readtags from universal-ctags

Close #1540
This commit is contained in:
Junegunn Choi
2024-04-25 20:02:14 +09:00
parent 45d96c9cb1
commit 503bb6fe9c
3 changed files with 31 additions and 16 deletions

View File

@@ -1082,6 +1082,10 @@ function! fzf#vim#tags(query, ...)
if !executable('perl')
return s:warn('Tags command requires perl')
endif
if len(a:query) && !executable('readtags')
return s:warn('readtags from universal-ctags is required to pre-filter tags with a prefix')
endif
if empty(tagfiles())
call inputsave()
echohl WarningMsg