HueSamai / tree-sitter-sil

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to install

For neovim in packer

Add this somewhere in your treesitter configs.

local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.sil = {
  install_info = {
    url = "https://github.com/HueSamai/tree-sitter-sil.git",
    files = {"src/parser.c"},
    branch = "master",
    generate_requires_npm = false, 
    requires_generate_from_grammar = false,
  },
  filetype = "sil", 
}

Then you want to go to where your nvim-data folder is stored, and then go into your queries directory (for packer it will be under site\pack\packer\start\nvim-treesitter\queries), then create a new directory called sil and copy the highlights.scm from this repo into the sil directory you created.

About


Languages

Language:C 97.3%Language:JavaScript 1.4%Language:Rust 0.8%Language:C++ 0.2%Language:Scheme 0.2%Language:Python 0.1%