From e0e6d1b263c2cc678ebf616e04495195ea45d5e2 Mon Sep 17 00:00:00 2001 From: Stephen Bolton Date: Fri, 1 Oct 2021 23:08:44 -0600 Subject: Add headers as an option to fold on (#1873) * Add headers as an option to fold on treesitter-beancount added grammar rules around orgmode and markdown headers so that they are recognized in beancount documents. This change makes it so that they will be taken into consideration when folding text. Commit: https://github.com/polarmutex/tree-sitter-beancount/commit/79ae7c1f2654a2a6936b0f37bf754e5ff59c9186 * Fix node name for headers The correct name for the header nodes is heading. --- queries/beancount/folds.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/queries/beancount/folds.scm b/queries/beancount/folds.scm index 25eb27b9d..b65ae0115 100644 --- a/queries/beancount/folds.scm +++ b/queries/beancount/folds.scm @@ -1,3 +1,4 @@ [ (transaction) + (heading) ] @fold -- cgit v1.2.3-70-g09d2