Open GeekaholicLin opened 7 years ago
I have the same issue. I compared the formats jsctags and ctags(vanilla) and found out the two are a bit different. Especially the 'lineno' part. I guess tagbar can't parse the jsctags correctly so shows nothing in the side windows.
Tagbar doesn't use pre-generated tags
files, it generates the necessary information on the fly. That said, this should work automatically as long as jsctags
is in your $PATH
. If it is and it is still not working, please generate a logfile as explained in :h tagbar-issues
and open a new issue in the Tagbar repo.
The lineno
part should work, Tagbar has a special case for that.
I want to use jsctags and tagbar in vim,but there were something wrong.
When I used them in vim,the tagbar always said 'no tag found'.
I used the command
find . -type f -iregex ".*\.js$" -exec jsctags {} -f \; | sed '/^$/d' | sort > tags
for a test filetest.js
, and it created a file named 'tags' in the directory.The filetags
showes the result of the command successfully.The content of file:
But when I toggle the tagbar, it does not work.And I found a issue in the repo
majutsushi/tagbar
.Are there any configs that I should write in my vimrc file to let it work correctly for js?