HerringtonDarkholme / yats.vim

Yet Another TypeScript Syntax: The most advanced TypeScript Syntax Highlighting in Vim
Vim License
651 stars 68 forks source link

Builtin Support for tagbar! #43

Closed paldepind closed 6 years ago

paldepind commented 6 years ago

Thank you for working on this project :+1:

I have a small question. The documentation says:

Builtin Support for tagbar!

What does that mean? I've Tagbar installed and I've installed YATS but when I open the tagbar in a .ts file I get an empty tree? The Tagbar works fine for my init.vim file. I've Exuberant Ctags installed on my system. Should I install something else as well or have I misunderstood something?

HerringtonDarkholme commented 6 years ago

I don't know why but ctags doesn't work for me either.

I believe it worked before, but now it cannot :(

HerringtonDarkholme commented 6 years ago

I have figured out. First, if you are on OSX. You have to install exuberant tags. Not universal tags. The latter won't read ~/.ctags.

Then, you need to copy https://github.com/HerringtonDarkholme/yats.vim/blob/master/ctags/typescript.ctags to your ~/.ctags.

Then every thing should work.

paldepind commented 6 years ago

Thanks. That works. Should this be added to the documentation? Should I do a PR?

HerringtonDarkholme commented 6 years ago

I have updated this plugin thus ctags will use yats' builtin tagbar file.

You can try it in master branch.

paldepind commented 6 years ago

Nice. Thank you 👍