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:
Stephan Seitz 2020-05-09 14:54:14 +02:00
parent 307c78aa1e
commit 34984a3919

View file

@ -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()