feat(djot): update queries (#6375)

- Adjust some highlights to fit context better
- Conceal inline content
- Add locals
- Add folds
This commit is contained in:
Jonas Hietala 2024-04-01 13:42:12 +02:00 committed by GitHub
parent 0bfa0be5e4
commit 25ed904c75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 208 additions and 54 deletions

10
queries/djot/indents.scm Normal file
View file

@ -0,0 +1,10 @@
; The intention here is to rely on Neovims `autoindent` setting.
; This allows us to not indent after just a single list item
; so we can create narrow lists quickly, but indent blocks inside list items
; to the previous paragraph.
(list_item_content) @indent.auto
(footnote_content) @indent.align
((table_caption) @indent.begin
(#set! indent.immediate 1))