1 " Universal Ctags creator
2 " Maintainer: Sergey Matveev <stargrave@stargrave.org>
3 " License: GNU General Public License version 3 of the License or later
5 " Create "tags" file in your project's root first.
6 " Then :Ctags LANG to fill it.
8 function! ctags#do(lang, onlyCmd, verbose) abort
11 echohl WarningMsg | echomsg "No tagfiles" | echohl None
14 let dst = sort(dst, {a, b -> len(a) > len(b) ? 1 : len(a) == len(b) ? 0 : -1})[0]
15 let src = "/" . join(split(dst, "/")[:-3], "/")
17 let dst = getcwd() . "/.tags/tags"
22 \"--languages=" . a:lang,
27 if a:verbose == v:true | let cmdline += ["--verbose"] | endif
28 let cmdline += ["-f", dst, src]
29 if a:onlyCmd == v:true
30 echo join(cmdline, " ")
33 execute "!" . join(cmdline, " ")
34 if a:verbose != v:true | redraw! | endif