|
1 | 1 | import type { DefaultTheme } from 'vitepress' |
2 | 2 | import { transformerTwoslash } from '@shikijs/vitepress-twoslash' |
| 3 | +import { createTwoslasher } from '@unocss/twoslash' |
3 | 4 | import { defineConfig } from 'vitepress' |
4 | 5 | import { groupIconMdPlugin } from 'vitepress-plugin-group-icons' |
5 | 6 | import llmstxt from 'vitepress-plugin-llms' |
@@ -45,9 +46,10 @@ const Integrations: DefaultTheme.NavItemWithLink[] = [ |
45 | 46 | { text: 'CLI', link: '/integrations/cli' }, |
46 | 47 | { text: 'PostCSS', link: '/integrations/postcss' }, |
47 | 48 | { text: 'ESLint', link: '/integrations/eslint' }, |
| 49 | + { text: 'Twoslash', link: '/integrations/twoslash' }, |
| 50 | + { text: 'LSP Support', link: '/integrations/lsp' }, |
48 | 51 | { text: 'VS Code Extension', link: '/integrations/vscode' }, |
49 | 52 | { text: 'JetBrains IDE Plugin', link: '/integrations/jetbrains' }, |
50 | | - { text: 'LSP Support', link: '/integrations/lsp' }, |
51 | 53 | { text: 'Zed Extension', link: '/integrations/zed' }, |
52 | 54 | ] |
53 | 55 |
|
@@ -303,6 +305,10 @@ export default defineConfig({ |
303 | 305 | transformerTwoslash({ |
304 | 306 | processHoverInfo: info => info.replace(/_unocss_core\./g, ''), |
305 | 307 | }), |
| 308 | + transformerTwoslash({ |
| 309 | + langs: ['vue', 'html'], |
| 310 | + twoslasher: createTwoslasher(), |
| 311 | + }), |
306 | 312 | ], |
307 | 313 | config(md) { |
308 | 314 | md.use(groupIconMdPlugin) |
|
0 commit comments