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

There is no way to disable bold for "true" and "false" keywords. #235

Open
devshmsec opened this issue May 10, 2024 · 5 comments
Open

There is no way to disable bold for "true" and "false" keywords. #235

devshmsec opened this issue May 10, 2024 · 5 comments

Comments

@devshmsec
Copy link

I have set all styles to { bold = false } but still "true" and "false" are left out. How to remove boldness from these keywords?

functionStyle = { bold = false },
commentStyle = { italic = false, bold = false },
keywordStyle = { italic = false, bold = false },
statementStyle = { bold = false },
typeStyle = { italic = true, bold = false },
@rebelot
Copy link
Owner

rebelot commented May 10, 2024

I can't reproduce. If you are using compilation feature remember to reload neovim and use the command :KanagawaCompile

@devshmsec
Copy link
Author

I am not using compilation feature. I also tried different terminals but still have this issue.

konsole

@rebelot
Copy link
Owner

rebelot commented May 10, 2024

from your screenshot I can't see any bold statement or italic comment.. use :hi Comment or :hi Statement to make sure

@devshmsec
Copy link
Author

devshmsec commented May 10, 2024

I don't understand what are you saying. I disable every style with { italic = false, bold = false }, that's why there are no bold statement and italic comment. My problem is there is still bold decoration on "true" and "false" keyword.

@devshmsec
Copy link
Author

devshmsec commented May 10, 2024

finally fixed the situation in overrides option.

overrides = function()
    return {
        -- setting boolean decoration bold to false
        Boolean = { bold = false },
    }
end,

Thanks to u/zanza19 from neovim subreddit, he pointed out that problem is in this file.
lua/kanagawa/highlights/syntax.lua

--  Boolean	a boolean constant: TRUE, false
Boolean = { fg = theme.syn.constant, bold = true },

There should be type for booleans in config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants