mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
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:
parent
c1bf9aa690
commit
333ce8bcce
3 changed files with 53 additions and 0 deletions
|
@ -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
7
queries/norg/context.scm
Normal file
|
@ -0,0 +1,7 @@
|
|||
([
|
||||
(heading1)
|
||||
(heading2)
|
||||
(heading3)
|
||||
(heading4)
|
||||
(heading5)
|
||||
] @context)
|
45
test/test.norg
Normal file
45
test/test.norg
Normal file
|
@ -0,0 +1,45 @@
|
|||
* a heading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
** a subheading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
* another heading
|
||||
|
||||
|
||||
|
||||
|
||||
** a subheading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
*** a subsubheading
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue