Commit 399832e 1 parent bed58f8 commit 399832e Copy full SHA for 399832e
File tree 1 file changed +12
-8
lines changed
lua/neorg/modules/core/qol/toc
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -268,17 +268,21 @@ module.public = {
268
268
local start_lines = { offset = offset }
269
269
ui_data .start_lines = start_lines
270
270
271
+ --- @type vim.treesitter.Query
271
272
toc_query = toc_query
272
273
or utils .ts_parse_query (
273
274
" norg" ,
274
- [[
275
- (
276
- [(heading1_prefix)(heading2_prefix)(heading3_prefix)(heading4_prefix)(heading5_prefix)(heading6_prefix)]@prefix
277
- .
278
- state: (detached_modifier_extension (_)@modifier)?
279
- .
280
- title: (paragraph_segment)@title
281
- )]]
275
+ [[ (
276
+ [(heading1_prefix)
277
+ (heading2_prefix)
278
+ (heading3_prefix)
279
+ (heading4_prefix)
280
+ (heading5_prefix)
281
+ (heading6_prefix)
282
+ ] @prefix
283
+ state: (detached_modifier_extension . (_)@modifier)?
284
+ title: (paragraph_segment) @title
285
+ ) ]]
282
286
)
283
287
284
288
local norg_root = module .required [" core.integrations.treesitter" ].get_document_root (norg_buffer )
You can’t perform that action at this time.
0 commit comments