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

Support for Vue.js and React.js #59

Open
domi91c opened this issue Apr 13, 2020 · 4 comments
Open

Support for Vue.js and React.js #59

domi91c opened this issue Apr 13, 2020 · 4 comments

Comments

@domi91c
Copy link

domi91c commented Apr 13, 2020

I think this plugin would be perfect for component based Javascript frameworks. It already handles the references, but doesn't seem to pick up the definitions based on file name.

@pechorin
Copy link
Owner

Can you provide explanation and example? Is you looking for export var or smth?

@domi91c
Copy link
Author

domi91c commented Apr 15, 2020

Sorry, I didn't clarify. I meant for component tags inside the templates in Vue, for example.

For a template like the following, it'd be great if I could hover on my-record, and have AnyJump list the MyRecord component under Definitions. So far I haven't been able to find any Vim plugins that do this, even Vetur the Vue LSP doesn't seem to do this.

<template>
   <div id="app">
      <div class="group connectionState">
        Connection-State is: <em id="connection-state">{{connectionState}}</em>
      </div>
      <my-record :ds="ds"></my-record>
      <my-events :ds="ds"></my-events>
      <my-rpc :ds="ds"></my-rpc>
    </div>
</template>

@pechorin
Copy link
Owner

pechorin commented Dec 8, 2020

can you try to use visual mode and AnyJump after this?

Снимок экрана 2020-12-08 в 03 42 51

@tux255
Copy link

tux255 commented Jan 28, 2021

Would be nice to make it work for React.js components.

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