mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Export configs.parsers to enable users to register their own parsers
E.g.
```lua
require "nvim-treesitter.configs".parsers.lisp = {
install_info = {
url = "https://github.com/theHamsta/tree-sitter-clojure",
files = {"src/parser.c"}
}
}
```
This commit is contained in:
parent
307c78aa1e
commit
34984a3919
1 changed files with 1 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ local config = {
|
|||
}
|
||||
|
||||
local M = {}
|
||||
M.parsers = parsers
|
||||
|
||||
local function enable_module(mod, bufnr, ft)
|
||||
local bufnr = bufnr or api.nvim_get_current_buf()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue