folke / todo-comments.nvim

✅ Highlight, list and search todo comments in your projects
Apache License 2.0
3.26k stars 92 forks source link

feature: custom font color instead backgound colors #198

Closed MichaelC001 closed 3 months ago

MichaelC001 commented 1 year ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

I use the transparent background in Neovim, so the default background color highlight is not working. but if I could change the font color from default black to red or something, it could still be helpful for me. thank you

Describe the solution you'd like

custom font color

Describe alternatives you've considered

--

Additional context

No response

b0ae989c commented 5 months ago

Set option highlight.keyword = 'fg'. Should close.

ChristinWhite commented 4 months ago

Like this? Can't speak for the op but unless I'm missing something that was the first thing I tried. fg sets the background color, not the foreground text itself.

CleanShot 2024-06-19 at 15 11 33@2x

b0ae989c commented 4 months ago

No. It's the option highlight.keyword as in

{
  "folke/todo-comments.nvim",
  dependencies = { "nvim-lua/plenary.nvim" },
  opts = {
    highlight = {
      keyword = 'fg',
    },
  },
}
ChristinWhite commented 4 months ago

Interesting, not quite was I was personally hoping for but that's another nice option. Thank you!

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 7 days with no activity.