How can I use my own highlight group? #11

Closed
opened 2025-11-18 23:49:23 -06:00 by btj93 · 2 comments
btj93 commented 2025-11-18 23:49:23 -06:00 (Migrated from github.com)

Hi, I came across this plugin on reddit and it is working wonderfully so far!

However, the default highlight color doesn't quite fit my colorscheme. So I tried to change the highlight_group properties in the config.
Instead it seems to change the highlight group I provided to the default highlight of NoGoZone.

Here is my attempt at changing it.

return {
  "TheNoeTrevino/no-go.nvim",
  dependencies = { "nvim-treesitter/nvim-treesitter" },
  ft = "go",
  opts = {
    -- Your configuration here (optional)
    -- lazy.nvim automatically calls setup() with the opts property
    identifiers = { "err", "error" }, -- Customize which identifiers to collapse
    -- look at the default config for more details
    highlight_group = "LspInlayHint",
  },
}

with highlight_group opts set:
Image

without highlight_group opts set:
Image

Thanks again for creating this plugin!

Hi, I came across this plugin on reddit and it is working wonderfully so far! However, the default highlight color doesn't quite fit my colorscheme. So I tried to change the `highlight_group` properties in the config. Instead it seems to change the highlight group I provided to the default highlight of `NoGoZone`. Here is my attempt at changing it. ``` return { "TheNoeTrevino/no-go.nvim", dependencies = { "nvim-treesitter/nvim-treesitter" }, ft = "go", opts = { -- Your configuration here (optional) -- lazy.nvim automatically calls setup() with the opts property identifiers = { "err", "error" }, -- Customize which identifiers to collapse -- look at the default config for more details highlight_group = "LspInlayHint", }, } ``` with `highlight_group` opts set: <img width="538" height="58" alt="Image" src="https://github.com/user-attachments/assets/958598f7-117e-45cb-99f1-a9d2054bb062" /> with*out* `highlight_group` opts set: <img width="535" height="63" alt="Image" src="https://github.com/user-attachments/assets/4720123b-a9ba-4136-bc60-655d8c386a16" /> Thanks again for creating this plugin!
Owner

Should be fixed now. That feature broke as I was making the NoGoZone highlight and I didn't realize it.

Update the plugin, try it out, and comeback here and let me know if it works so I can close this out, please.

Thanks for reporting!

Should be fixed now. That feature broke as I was making the `NoGoZone` highlight and I didn't realize it. Update the plugin, try it out, and comeback here and let me know if it works so I can close this out, please. Thanks for reporting!
btj93 commented 2025-11-19 20:15:05 -06:00 (Migrated from github.com)

Can confirm it works now. Thanks for the quick fix!

Image
Can confirm it works now. Thanks for the quick fix! <img width="540" height="51" alt="Image" src="https://github.com/user-attachments/assets/9fbac996-212a-4363-a17c-1fac6092b49e" />
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
noe.trevino/no-go.nvim#11
No description provided.