Generate ctags for Ruby and Javascript

765 views Asked by At

Currently I'm using this command to generate ctags:

ctags -R --languages=ruby,javascript --exclude=.git --exclude=log . $(bundle list --paths)

This works for Ruby, but not for the JavaScript. How can I fix that, so that JavaScript code will be in ctags too?

1

There are 1 answers

1
valk On BEST ANSWER

Adding --tag-relative and --sort=yes fixed the problem.

ctags --tag-relative -R --sort=yes --languages=ruby,javascript --exclude=.git --exclude=log . $(bundle list --paths)