Skip to content

Commit

Permalink
markdown & todo: harmonize todo and waiting tag to enable markdown re…
Browse files Browse the repository at this point in the history
…ndered todos working with todo-comment.nvim

Signed-off-by: aserowy <serowy@hotmail.com>
  • Loading branch information
aserowy committed Nov 19, 2024
1 parent fbbe4f2 commit 1d7f202
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
14 changes: 14 additions & 0 deletions lua/plugins/llm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ return {
"MeanderingProgrammer/render-markdown.nvim",
opts = {
file_types = { "markdown", "Avante" },
checkbox = {
custom = {
todo = {
raw = "[TODO]",
rendered = "󰄱 ",
highlight = "RenderMarkdownUnchecked",
},
waiting = {
raw = "[WAITING]",
rendered = "󰥔 ",
highlight = "DiagnosticWarn",
},
},
},
},
ft = { "markdown", "Avante" },
},
Expand Down
15 changes: 12 additions & 3 deletions lua/plugins/navigation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,21 @@ return {
},
{
"folke/todo-comments.nvim",
config = function()
require("todo-comments").setup({})
end,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
opts = {
keywords = {
WAITING = { icon = "󰥔 ", color = "warning" },
},
highlight = {
comments_only = false,
pattern = [[.*<(KEYWORDS)\s*]],
},
search = {
pattern = [[(- \[(KEYWORDS)\])|(\b(KEYWORDS):)]],
},
},
},
{
"nvim-telescope/telescope.nvim",
Expand Down

0 comments on commit 1d7f202

Please sign in to comment.