From b8459df74d6af57c353179b2b8c753af47cab594 Mon Sep 17 00:00:00 2001 From: PolarMutex <115141+polarmutex@users.noreply.github.com> Date: Tue, 28 Jun 2022 04:44:38 -0400 Subject: [PATCH] feat(beancount): support folding org headers (#3078) requires beancount parser update Co-authored-by: Brian Ryall Co-authored-by: Christian Clason --- lockfile.json | 2 +- lua/nvim-treesitter/parsers.lua | 2 +- queries/beancount/folds.scm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lockfile.json b/lockfile.json index c1a9dcd7f..2e2a5247d 100644 --- a/lockfile.json +++ b/lockfile.json @@ -6,7 +6,7 @@ "revision": "275effdfc0edce774acf7d481f9ea195c6c403cd" }, "beancount": { - "revision": "78b8ddca3ab774573a4e3bf64eabd79e9452cea9" + "revision": "a1050584340a2375b6b480ba9e9691aebb9d33d5" }, "bibtex": { "revision": "ccfd77db0ed799b6c22c214fe9d2937f47bc8b34" diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 81747fc99..fb97bf91d 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -820,7 +820,7 @@ list.r = { list.beancount = { install_info = { url = "https://github.com/polarmutex/tree-sitter-beancount", - files = { "src/parser.c" }, + files = { "src/parser.c", "src/scanner.cc" }, branch = "master", }, maintainers = { "@polarmutex" }, diff --git a/queries/beancount/folds.scm b/queries/beancount/folds.scm index b65ae0115..ffe319500 100644 --- a/queries/beancount/folds.scm +++ b/queries/beancount/folds.scm @@ -1,4 +1,4 @@ [ (transaction) - (heading) + (section) ] @fold