From 283ee87ed1817ec496de6808c448516b87ffda97 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 21 Mar 2021 00:03:20 +0100 Subject: Add LaTeX/Bibtex parser --- lua/nvim-treesitter/parsers.lua | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 5b2e75bc8..e581eb089 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -499,12 +499,29 @@ list.r = { } list.beancount = { - install_info = { - url = "https://github.com/polarmutex/tree-sitter-beancount", - files = { "src/parser.c" }, - branch = "master", - }, - maintainers = { "@polarmutex" } + install_info = { + url = "https://github.com/polarmutex/tree-sitter-beancount", + files = { "src/parser.c" }, + branch = "master", + }, + maintainers = { "@polarmutex" }, +} + +list.latex = { + install_info = { + url = "https://github.com/latex-lsp/tree-sitter-latex", + files = { "src/parser.c" }, + }, + filetype = 'tex', + used_by = {'cls', 'sty'} +} + +list.bibtex = { + install_info = { + url = "https://github.com/latex-lsp/tree-sitter-bibtex", + files = { "src/parser.c" }, + }, + filetype = 'bib', } local M = { -- cgit v1.2.3-70-g09d2