127127
128128function Config :_deprecation_notify (opts )
129129 local messages = {}
130- if
131- opts .mappings
132- and opts .mappings .org
133- and (opts .mappings .org .org_increase_date or opts .mappings .org .org_decrease_date )
134- then
135- table.insert (
136- messages ,
137- ' org_increase_date/org_decrease_date mappings are deprecated in favor of org_timestamp_up/org_timestamp_down (More granular increase/decrease).'
138- )
139- table.insert (messages , ' See https://github.com/nvim-orgmode/orgmode/blob/tree-sitter/DOCS.md#changelog' )
140- if opts .mappings .org .org_increase_date then
141- opts .mappings .org .org_timestamp_up = opts .mappings .org .org_increase_date
142- end
143- if opts .mappings .org .org_decrease_date then
144- opts .mappings .org .org_timestamp_down = opts .mappings .org .org_decrease_date
145- end
146- end
147-
148130 if opts .org_indent_mode and type (opts .org_indent_mode ) == ' string' then
149131 table.insert (
150132 messages ,
@@ -369,7 +351,7 @@ function Config:setup_ts_predicates()
369351 end
370352
371353 return false
372- end , true )
354+ end , { force = true } )
373355
374356 vim .treesitter .query .add_predicate (' org-is-valid-priority?' , function (match , _ , source , predicate )
375357 local node = match [predicate [2 ]]
@@ -404,7 +386,7 @@ function Config:setup_ts_predicates()
404386 local todo_text = vim .treesitter .get_node_text (prev_sibling , source )
405387 local is_prev_sibling_todo_keyword = todo_keywords [todo_text ] and true or false
406388 return is_prev_sibling_todo_keyword
407- end , true )
389+ end , { force = true } )
408390
409391 vim .treesitter .query .add_directive (' org-set-block-language!' , function (match , _ , bufnr , pred , metadata )
410392 local lang_node = match [pred [2 ]]
@@ -416,7 +398,7 @@ function Config:setup_ts_predicates()
416398 return
417399 end
418400 metadata [' injection.language' ] = utils .detect_filetype (text ) or text
419- end , true )
401+ end , { force = true } )
420402end
421403
422404--- @param content table
0 commit comments