Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer tags not working anymore for JavaScript files #528

Closed
hoschi opened this issue Feb 13, 2014 · 3 comments
Closed

Buffer tags not working anymore for JavaScript files #528

hoschi opened this issue Feb 13, 2014 · 3 comments

Comments

@hoschi
Copy link

hoschi commented Feb 13, 2014

I don't know if it is my fault :( Can I enable a debug mode or something to see if there is an error?

@kien
Copy link
Owner

kien commented Feb 13, 2014

BufferTag relies entirely on ctags for the results and hasn't been changed in a while. So check if ctags is installed and working properly on your system.

@hoschi
Copy link
Author

hoschi commented Feb 14, 2014

JSCtags doesn't properly with node v10. Sorry for the noise :(

@hoschi hoschi closed this as completed Feb 14, 2014
@memeplex
Copy link

There really is a problem here. Right, jsctags doesn't work anymore but you can uninstall it and ctrlp will be smart enough to fallback to ctags. The issue is that s:types is configured with --javascript-types=sf and s is wrong for ctags.

A workaround:

let g:ctrlp_buftag_types = { 'javascript': '--language-force=javascript --javascript-types=fcmv' }

The supported kinds are:

ctags --list-kinds=javascript
f  functions
c  classes
m  methods
p  properties
v  global variables

By the way, I think kinds is more consistent terminology than types regarding the ctags documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants