|
|
@ -156,12 +156,14 @@ function M.setup(c)
|
|
|
|
autocmd InsertLeave %s lua require("due_nvim").redraw(0)
|
|
|
|
autocmd InsertLeave %s lua require("due_nvim").redraw(0)
|
|
|
|
autocmd TextChanged %s lua require("due_nvim").redraw(0)
|
|
|
|
autocmd TextChanged %s lua require("due_nvim").redraw(0)
|
|
|
|
autocmd TextChangedI %s lua require("due_nvim").redraw(0)
|
|
|
|
autocmd TextChangedI %s lua require("due_nvim").redraw(0)
|
|
|
|
autocmd BufEnter %s syn match DueDate %s display containedin=mkdNonListItemBlock,mkdListItemLine,mkdBlockquote contained
|
|
|
|
autocmd BufEnter %s syn match DueDate %s display containedin=mkdNonListItemBlock,mkdListItemLine,mkdBlockquote conceal
|
|
|
|
autocmd BufEnter %s hi def link DueDate %s
|
|
|
|
autocmd BufEnter %s hi def link DueDate %s
|
|
|
|
augroup END
|
|
|
|
augroup END
|
|
|
|
]] , ft, ft, ft, ft, ft, ft, regex_hi_full, ft, date_hi),
|
|
|
|
]] , ft, ft, ft, ft, ft, ft, regex_hi_full, ft, date_hi),
|
|
|
|
false
|
|
|
|
false
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
-- old autcmd
|
|
|
|
|
|
|
|
--autocmd BufEnter %s syn match DueDate %s display containedin=mkdNonListItemBlock,mkdListItemLine,mkdBlockquote contained conceal
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local function draw_due(due, buf, key)
|
|
|
|
local function draw_due(due, buf, key)
|
|
|
|