0.0.1 • Published 2 years ago

@deuscx/tree-sitter-vue v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

tree-sitter-vue

Contributors Forks Stargazers Issues GitHub

Features

  • support script content analyze

Getting Started

npm.io

Installation

npm install @deuscx/tree-sitter-vue

Usage

use in lazy.nvim & tree-sitter nvim

local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.vue3 = {
  install_info = {
    url = "https://github.com/Deuscx/tree-sitter-vue", -- local path or git repo
    files = {"src/parser.c", "scr/scanner.cc"}, -- note that some parsers also require src/scanner.c or src/scanner.cc
    -- optional entries:
    branch = "main", -- default branch in case of git repo if different from master
    generate_requires_npm = false, -- if stand-alone parser without npm dependencies
    requires_generate_from_grammar = false, -- if folder contains pre-generated src/parser.c
  },
  filetype = "vue", -- if filetype does not match the parser name
}

Then use TSInstall vue3 to install it.

See the open issues for a full list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE for more information.

Credits & External Resources

0.0.1

2 years ago