3 # Universal Ctags creator
4 # Maintainer: Sergey Matveev <stargrave@stargrave.org>
5 # License: GNU General Public License version 3 of the License or later
7 # Create "tags" file in your project's root first.
8 # Then :Ctags LANG to fill it.
10 export def Do(lang: string, onlyCmd: bool, verbose: bool)
13 echohl WarningMsg | echomsg "No tagfiles" | echohl None
16 var dst = sort(dsts, (a, b) => len(a) > len(b) ? 1 : len(a) == len(b) ? 0 : -1)[0]
17 var src = "/" .. join(split(dst, "/")[: -3], "/")
19 dst = getcwd() .. "/.tags/tags"
24 "--languages=" .. lang,
29 if verbose == v:true | cmdline += ["--verbose"] | endif
30 cmdline += ["-f", dst, src]
32 echo join(cmdline, " ")
35 execute "!" .. join(cmdline, " ")
36 if verbose != v:true | redraw! | endif