cdmill / neomodern.nvim

A collection of modern themes for Neovim
Other
53 stars 3 forks source link

Disable special handling for `defaultLibrary` #28

Closed GoldsteinE closed 3 weeks ago

GoldsteinE commented 3 weeks ago

Hi!

I’d like to disable special highlights for defaultLibrary tokens. I don’t really care where a functions comes from and it looks kinda confusing. I’m not sure how would I do that though: I’ve tried setting

['@lsp.typemod.function.defaultLibrary'] = {}

or

['@lsp.typemod.function.defaultLibrary'] = { guifg = 'none' }

or

['@lsp.typemod.function.defaultLibrary'] = { link = 'None' }

but that just causes an info message about this highlight to appear at startup and the special coloring still applies. How do I override this?

cdmill commented 3 weeks ago

Should be ["@lsp.typemod.function.defaultLibrary"] = { fg = "none" }. Note fg = "none" instead of guifg = "none"

GoldsteinE commented 3 weeks ago

That worked, thanks!