@vpzk/plugin-treesitter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha.1 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @vpzk/plugin-treesitter

Weekly Downloads

1

Version

0.1.0-alpha.1

License

MIT

Unpacked Size

97 kB

Total Files

21

Last publish

Collaborators

  • yuchanns