pi0 / nuxt-shiki

🎨 Nuxt + Shiki syntax highlighter
79 stars 2 forks source link

cant get other langs or theme #25

Open WebPirat opened 7 months ago

WebPirat commented 7 months ago

Hello i am sure its ah me problem :)

i tried to add other langs or themes to the nuxt.config but when i try to for example embed highlighter with "Shell" i get an error that i maybe import it first.

Has someone a example for me how i should integrate it in the nuxt config ?

Thanks (i know issues isnt exactly the right place but i didnt know where to ask)

pi0 commented 7 months ago

Hi. Do you mind to share your repository or an example repository that is similar to your config so i can check?

WebPirat commented 7 months ago

i made that repo public but i dont know if it runs without supabase .env ;/ https://github.com/WebPirat/blog-pir.at

EDIT: I should explain abit i only use shiki on https://github.com/WebPirat/blog-pir.at/blob/main/components/blogDetails/blogHighlight.vue

i split the inc string first is the language second the code and in the https://github.com/WebPirat/blog-pir.at/blob/main/nuxt.config.ts i tried to import the lang