-
Notifications
You must be signed in to change notification settings - Fork 2
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
Auto complete of props in MDC #24
Comments
I guess we could leverage something similar to what @Tahul has done in Pinceau: https://github.com/Tahul/pinceau/blob/main/volar/index.js By using nuxt-component-meta under the hood? |
I was wanting to implement autocomplete for my React project at work. Would it be possible to have a configuration file that can specify all the props available for each directive so that this could work in a React as well as Vue project? |
Did you make the MDC works with React @mrwwalmsley ? |
Yes, we have been using MDC in a React project for a couple of years -- we extended Remark's MDC implementation. We had own custom editor & syntax highlighting that was not as good as the Nuxt3 syntax highlighter. When Nuxt3 added MDC I started upgrading my Nuxt side projects from Nuxt2 to Nuxt3 using MDC. After that we started testing the Nuxt plugin for writing our React content in VsCode. Our MDC implementation has a bunch of custom extensions such as
If the includes are not defined locally, then they are loaded from our content DB. |
I've been using this extension for a Nuxt website I have been rebuilding from Options+Nuxt2 to Composition+Nuxt3. It would be amazing to get autocomplete and syntax highlighting for attributes as well as slot names: And ideally would give a red squiggly underline for slots or attributes that don't exist. How hard to do this? Anything I can do to help? |
It would be great to have the possibility to support the autocompletion of props in the editor.
The text was updated successfully, but these errors were encountered: