Skip to content

Commit

Permalink
feat(query): add org mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Buhr committed May 31, 2023
1 parent 5bfc1f5 commit 9fffb91
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lua/otter/tools/queries.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@ return {
) @info
(#match? @info "{")
(code_fence_content) @code (#offset! @code)
)]]
)]],
org = [[
(block
name: (expr) @blocktype (#eq? @blocktype "src")
parameter: (expr) @lang
contents: (contents) @code
)
]]
}

0 comments on commit 9fffb91

Please sign in to comment.