diff options
| author | Stephen Bolton <stephen@bitsonthemind.com> | 2021-10-01 23:08:44 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-02 00:08:44 -0500 |
| commit | e0e6d1b263c2cc678ebf616e04495195ea45d5e2 (patch) | |
| tree | cf172a4ddbb9e6041f4acaeabf1da0f48ecfe639 | |
| parent | Rust: highlight loop labels (diff) | |
| download | nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.tar nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.tar.gz nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.tar.bz2 nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.tar.lz nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.tar.xz nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.tar.zst nvim-treesitter-e0e6d1b263c2cc678ebf616e04495195ea45d5e2.zip | |
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.scm | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
