Vim, Javascript, DoctorJS (jsctags) and Taglist (view source)

I installed DoctorJS (previously jsctags) in an attempt to get a good view / tag listing of the source code for Vim (using the Taglist plugin).

Installation went fine, but Vim Taglist does not work with DoctorJS.

When I try to open the tag window in Vim via :TListToggle , I get the following error:

 Taglist: Failed to generate tags for /home/me/script.js ctags: illegal option -- -^@usage: ctags [-BFadtuwvx] [-f tagsfile] file ...^@ 

I searched www and found this guide, offering a replacement for the Taglist-Plus plugin , but it doesn’t work with DoctorJS, only with an old version not supported by jsctags.

In short - I can't get this to work. Very frustrating. We must have a good look at the JavaScript source code!

Is any Vim being played out there that managed to get this work to work?

Thanks in advance.

The best decision:

After solving this problem (thanks for the answer, @romainl), I wrote a short guide on how easy it is to do this, as an answer to another question , I recommend checking this out.

+6
source share
1 answer

I am using TagBar . The latest version should support DoctorJS.

+8
source

Source: https://habr.com/ru/post/886969/


All Articles