feat: Added option for italic_comments

This commit is contained in:
ashincoder 2021-08-19 17:59:08 +05:30 committed by siduck76
parent 112d3866a5
commit a49f62d3c6
3 changed files with 13 additions and 2 deletions

View File

@ -11,6 +11,7 @@ M.ui = {
"onedark", "onedark",
"gruvchad", "gruvchad",
}, },
italic_comments = false,
-- Enable this only if your terminal has the colorscheme set which nvchad uses -- Enable this only if your terminal has the colorscheme set which nvchad uses
-- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal -- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal

View File

@ -11,6 +11,7 @@ M.ui = {
"onedark", "onedark",
"gruvchad", "gruvchad",
}, },
italic_comments = false,
-- Enable this only if your terminal has the colorscheme set which nvchad uses -- Enable this only if your terminal has the colorscheme set which nvchad uses
-- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal -- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal

View File

@ -41,11 +41,20 @@ fg("IndentBlanklineChar", line)
-- misc -- -- misc --
fg("LineNr", grey) fg("LineNr", grey)
fg("Comment", grey_fg)
-- Comments
local ui = require("utils").load_config().ui
if ui.italic_comments then
cmd("hi Comment gui=italic guifg=" .. grey_fg)
else
fg("Comment", grey_fg)
end
fg("NvimInternalError", red) fg("NvimInternalError", red)
fg("VertSplit", line) fg("VertSplit", line)
fg("EndOfBuffer", black) fg("EndOfBuffer", black)
--fg_bg("Visual",light_grey, colors.lightbg) -- fg_bg("Visual",light_grey, colors.lightbg)
-- Pmenu -- Pmenu
bg("Pmenu", one_bg) bg("Pmenu", one_bg)