feat: add norg queries

* feat: add norg queries

* add norg to README

* add test file

---------

Co-authored-by: jghauser <julianhauser.com>
This commit is contained in:
Julian Hauser 2023-05-10 17:33:40 +02:00 committed by GitHub
parent c1bf9aa690
commit 333ce8bcce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 0 deletions

View file

@ -138,6 +138,7 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [ ] `menhir`
- [ ] `mermaid`
- [ ] `meson`
- [x] `norg`
- [ ] `nickel`
- [ ] `nix`
- [ ] `ocamllex`

7
queries/norg/context.scm Normal file
View file

@ -0,0 +1,7 @@
([
(heading1)
(heading2)
(heading3)
(heading4)
(heading5)
] @context)

45
test/test.norg Normal file
View file

@ -0,0 +1,45 @@
* a heading
** a subheading
* another heading
** a subheading
*** a subsubheading