rebelot / kanagawa.nvim

NeoVim dark colorscheme inspired by the colors of the famous painting by Katsushika Hokusai.
MIT License
4.34k stars 182 forks source link

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

Open devshmsec opened 6 months ago

devshmsec commented 6 months ago

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 commented 6 months ago

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

devshmsec commented 6 months ago

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

konsole

rebelot commented 6 months ago

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

devshmsec commented 6 months ago

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 commented 6 months ago

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.