summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Bolton <stephen@bitsonthemind.com>2021-10-01 23:08:44 -0600
committerGitHub <noreply@github.com>2021-10-02 00:08:44 -0500
commite0e6d1b263c2cc678ebf616e04495195ea45d5e2 (patch)
treecf172a4ddbb9e6041f4acaeabf1da0f48ecfe639
parent8cf90f81a4386e4e53657b3665ac71423b9232ad (diff)
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.
-rw-r--r--queries/beancount/folds.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/beancount/folds.scm b/queries/beancount/folds.scm
index 25eb27b9..b65ae011 100644
--- a/queries/beancount/folds.scm
+++ b/queries/beancount/folds.scm
@@ -1,3 +1,4 @@
[
(transaction)
+ (heading)
] @fold