From 1e4b23c26678bd36e3da638183996eaa30e7fba8 Mon Sep 17 00:00:00 2001 From: gbprod Date: Tue, 18 Oct 2022 13:15:07 +0200 Subject: feat(diff): add diff parser This commit introduce diff parser. --- lua/nvim-treesitter/parsers.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 0f2bdffce..85485aa55 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1238,6 +1238,16 @@ list.twig = { filetype = "twig", } +list.diff = { + install_info = { + url = "https://github.com/the-mikedavis/tree-sitter-diff", + branch = "main", + files = { "src/parser.c" }, + }, + maintainers = { "@gbprod" }, + filetype = "gitdiff", +} + local M = { list = list, filetype_to_parsername = filetype_to_parsername, -- cgit v1.2.3-70-g09d2