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

:CtrlPBufTag not working in vue #548

Open
dyllandry opened this issue Jun 10, 2020 · 2 comments
Open

:CtrlPBufTag not working in vue #548

dyllandry opened this issue Jun 10, 2020 · 2 comments

Comments

@dyllandry
Copy link

For some reason :CtrlPBufTag is not working in my small vue file.

 == NO ENTRIES ==

But :CtrlPTag does work.

myFunction  test.vue  /^    myFunction() {$/;"  M
methods test.vue  /^  methods: {$/;"  P

My tags file:

!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED	1	/0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR	Darren Hiebert	/[email protected]/
!_TAG_PROGRAM_NAME	Exuberant Ctags	//
!_TAG_PROGRAM_URL	http://ctags.sourceforge.net	/official site/
!_TAG_PROGRAM_VERSION	5.9~svn20110310	//
methods	test.vue	/^  methods: {$/;"	P
myFunction	test.vue	/^    myFunction() {$/;"	M

My vue file:

<template>
</template>
<script>
export default {
  methods: {
    myFunction() {
      console.log('hello')
    }
  }
}
</script>
<style>
</style>
@dyllandry dyllandry changed the title :CtrlpBufTag not working in vue :CtrlPBufTag not working in vue Jun 10, 2020
@tacahiroy
Copy link
Member

Do you set g:ctrlp_buftag_types and / or g:ctrlp_buftag_ctags_bin?

Actually, CtrlPBufTag doesn't use existing tags files like :CtrlPTag does, but instead it generates tags file by itself and parses it.

@BioBox
Copy link

BioBox commented Jan 26, 2023

I've doing this with vlang and get the same issue. And yes, I did set g:ctrlp_buftag_types and it still doesn't work.
And why should the user even need to do this? Shouldn't the plugin have some sort of default for languages not explicitly set in buffertag.vim?

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