uloco/bluloco.nvim

Lack of highlight group for "TODO" in comments

Closed this issue · 3 comments

The theme seems to color other special comment things just fine but not TODOs when connected to tree-sitter for some reason (this is with javascript + comment tree-sitter installed).
image

I tested another theme (onedark) just to confirm that this is a bluloco + tree-sitter issue.

Disabling tree-sitter seems to bring back some TODO highlighting in bluloco:
image

Appreciate you looking into this, thanks!

What TODO plugin are you using? I'm using folke/todo-comments.nvim and it works when there is a colon after TODO, like TODO: and FIXME:. You can also adjust the pattern it matches so you could make it work for your style as well.
I can't fix what treesitter is doing here so I advise for using that plugin. Otherwise I don't know what to do about this tbh.

My current todo-comment config is this:

local status, todo = pcall(require, "todo-comments")
if (not status) then return end

todo.setup({
  search = {
    command = "rg",
    args = {
      "--color=never",
      "--no-heading",
      "--with-filename",
      "--line-number",
      "--column",
      "--glob=!e2e",
      "--glob=!translations",
      "--glob=!*.json",
      "--hidden"
    },
    -- regex that will be used to match keywords.
    -- don't replace the (KEYWORDS) placeholder
    pattern = [[\b(KEYWORDS):]], -- ripgrep regex
    -- pattern = [[\b(KEYWORDS)\b]], -- match without the extra colon. You'll likely get false positives
  },
})

Is that an extra plugin I need to install?