From 34984a39194e9a01219b4dc3f90feadc9872444a Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 9 May 2020 14:54:14 +0200 Subject: [PATCH] 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"} } } ``` --- lua/nvim-treesitter/configs.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index 9695da5af..c6aa3947f 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -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()