Open domi91c opened 4 years ago
Can you provide explanation and example? Is you looking for export var or smth?
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>
can you try to use visual mode and AnyJump after this?
Would be nice to make it work for React.js components.
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.