xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

Language specific options problem with C++ #139

Open alx741 opened 8 years ago

alx741 commented 8 years ago

I needed some special options for C++ so OmniCppComplete works properly:

      --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++

So i used the g:easytags_languages option as follows:

    let g:easytags_languages = {
        \   'cpp': {
        \       'cmd': '/usr/bin/exuberant-ctags',
        \       'args': ['--sort=yes', '--c++-kinds=+p', '--fields=+iaS', '--extra=+q', '--language-force=C++'],
        \       'fileoutput_opt': '-f',
        \       'stdout_opt': '-f-',
        \       'recurse_flag': '-R'
        \   }
        \}

But then C++ files are ignored and no cpp files are generated (using the g:easytags_by_filetype option). Is this a bug or am I doing something wrong?