]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/ctags.vim
python#importcompl#all works with LSP
[dotfiles.git] / vim / .vim / plugin / ctags.vim
index 4d98eb8ab21c5bc2a28a01cd7448464e034d3e8d..644e50a7618fd4f6691213016f8e07039bfaf9de 100644 (file)
@@ -1,28 +1,4 @@
-" Exuberant Ctags creator
-" Maintainer: Sergey Matveev <stargrave@stargrave.org>
-" License: GNU General Public License version 3 of the License or later
-"
-" Create "tags" file in your project's root first.
-" Then :Ctags LANG to fill it.
-
-function! s:ctags(lang, verbose)
-    let dst = tagfiles()[0]
-    let src = "/" . join(split(dst, "/")[:-2], "/")
-    if dst[0] != "/"
-        let dst = getcwd() . "/tags"
-        let src = getcwd()
-    endif
-    let cmdline = [
-        \'uctags',
-        \'--languages=' . a:lang,
-        \'--python-kinds=-i',
-        \'--recurse',
-    \]
-    if a:verbose == v:true | let cmdline += ['--verbose'] | endif
-    let cmdline += ['-f', dst, src]
-    execute "!" . join(cmdline, " ")
-    if a:verbose != v:true | redraw! | endif
-endfunction
-
-command! -nargs=1 Ctags silent call s:ctags(<f-args>, v:false)
-command! -nargs=1 Ctagsv silent call s:ctags(<f-args>, v:true)
+if exists("*ctags#do") | finish | endif
+command! -nargs=1 Ctags silent call ctags#do(<f-args>, v:false, v:false)
+command! -nargs=1 Ctagsv silent call ctags#do(<f-args>, v:true, v:false)
+command! -nargs=1 Ctagscmd call ctags#do(<f-args>, v:true, v:true)