Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate colors for certain words inside comments #103

Closed
josevelaz opened this issue Jul 26, 2024 · 3 comments · Fixed by #104
Closed

Inaccurate colors for certain words inside comments #103

josevelaz opened this issue Jul 26, 2024 · 3 comments · Fixed by #104
Labels
bug Something isn't working

Comments

@josevelaz
Copy link

josevelaz commented Jul 26, 2024

Description

CleanShot 2024-07-26 at 13 09 55@2x

Looks like some keywords inside comments are being highlighted

Neovim version?

10

What should happen?

Comments should all be the same color

What happened instead?

Certain keywords are colored inside comments

Your configuration

{
    "scottmckendry/cyberdream.nvim",
    lazy = false,
    priority = 1000,
    config = function()
        require("cyberdream").setup({
            borderless_telescope = false,
        })
        vim.cmd("colorscheme cyberdream")
    end,
}
@josevelaz josevelaz added the bug Something isn't working label Jul 26, 2024
@scottmckendry
Copy link
Owner

Hi @josevelaz! These highlights are from neovim built in spell checker. You can turn them off with :set nospell

Personally I only have spell check enabled on certain file types. You can read more about Spell here:

https://neovim.io/doc/user/spell.html

Hope this helps!

@scottmckendry scottmckendry added the waiting for op This issue is waiting for a response from the original poster label Jul 26, 2024
@josevelaz
Copy link
Author

josevelaz commented Jul 26, 2024

@scottmckendry That fixed it. Thank you
Somewhat odd though that it wasn't displaying a diagnostic message for some files but it was for others. But it seems unrelated. I guess i never noticed the issue with cattpuccin since it only colors the underline and not the word.

@scottmckendry scottmckendry removed the waiting for op This issue is waiting for a response from the original poster label Jul 26, 2024
@scottmckendry
Copy link
Owner

I thought about it, and what you are saying makes a lot of sense. The fg highlight is unnecessary when combined with the under curl.

I've updated the groups so only the under curl is highlighted — that way the fg can be set dynamically depending on the misspelt token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants