Skip to content

nazo6/ts-query-installer.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-query-installer.nvim

Plugin to install external treesitter query that is not included in nvim-treesitter.

Be aware that external "parser" can be installed by nvim-treesitter itself. This plugin is for external "query".

Installation

Using lazy.nvim :

{
  "nazo6/ts-query-installer.nvim",
  config = function()
    require("ts-query-installer").setup {
      sources = {
        -- "nu" is the name of the filetype.
        nu = {
          -- Only "repo" is required.
          repo = "https://github.com/nushell/tree-sitter-nu",
          branch = "main",
          path = "queries",
        },
      },
    }
  end,
}

and specify as dependency of nvim-treesitter

{
  "nvim-treesitter/nvim-treesitter",
  ...
  dependencies = {
    ...
    { "ts-query-installer.nvim" },
  },
}

Usage

Install query

:TSQueryInstall <filetype>
" or install all
:TSQueryInstall all

Update query

:TSQueryUpdate <filetype>
" or update all
:TSQueryUpdate all

Uninstall query

:TSQueryUninstall <filetype>
" or uninstall all
:TSQueryUninstall all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages