folke / todo-comments.nvim

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

How do I change the grey colour behide the icon? #74

Open hsheikhali1 opened 2 years ago

hsheikhali1 commented 2 years ago

So I've noticed that there is a persistent grey bg behind the icons and I am not sure how to remove this. Any ideas?

Here is a screenshot of what I mean Screen Shot 2021-10-29 at 11 01 36 AM

typkrft commented 2 years ago

When I install this it works initially, but upon restart I get a grey background as well. I am using NVChad and suspect that something is getting loaded out of order or something is overriding the color.

Working around by setting the colors manually. @hsheikhali1 eg:

vim.cmd("hi TodoSignNOTE guibg=#282a36")
vim.cmd("hi TodoSignTODO guibg=#282a36")
-- etc
Freyskeyd commented 2 years ago

For NvChad users you can fix this with :

["folke/todo-comments.nvim"] = {
    requires = {"nvim-lua/plenary.nvim"},
    after = "base46", -- Fix the background issue
    config = function()
      require("todo-comments").setup {}
    end
  },
hezirel commented 1 year ago

I add some trouble with this for certains themes, the default one mostly.

On macos i found that moving the default themes from brew install dir (/usr/share/vim/vim82/colors) to my XDG_DATA_HOME ('~/.config/vim/.vim/colors') fixed the problem for most of them. Instead of a grey color they adapted to the current theme

I think it has to do with write permissions on highlight groups

Hope it helps

github-actions[bot] commented 6 days 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.