0.1.0-alpha.1 • Published 2 years ago
@vpzk/plugin-treesitter v0.1.0-alpha.1
@vpzk/plugin-treesitter
treesitter port to vuepress plugin.
How to use
add this plugin and other treesitter language packages you need as dependencies:
yarn add @vpzk/plugin-treesitter tree-sitter-go # take go for example
then use this plugin in your vuepress config file:
import { defineUserConfig } from 'vuepress'
import { treesitterPlugin } from '@vpzk/plugin-treesitter'
export default defineUserConfig({
lang: 'en-US',
title: 'Vpzk',
description: 'Vpzk, link your thinking',
plugins: [
treesitterPlugin()
]
})
now the treesitter-go takes effect.
Todo
- color scheme tokyonight support for all treesitter supported languages.
- alias identifier support for languages.
- the first release.