From: mofiqul Date: Fri, 14 Jan 2022 11:17:01 +0000 (+0530) Subject: Added italic comment Fix:#26 X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=8bbf75292e22190df3832512bb25f0334033520f;p=nvim-plugins%2Fflatwhite.git Added italic comment Fix:#26 --- diff --git a/lua/dracula/init.lua b/lua/dracula/init.lua index 8bba1a8..b017fa6 100644 --- a/lua/dracula/init.lua +++ b/lua/dracula/init.lua @@ -57,6 +57,8 @@ end M.apply = function() + local isItalic = vim.g.dracula_italic_comment == true + local highlight = function(group, fg, bg, attr, sp) fg = fg and "guifg=" .. fg or "guifg=NONE" bg = bg and "guibg=" .. bg or "guibg=NONE" @@ -75,7 +77,7 @@ M.apply = function() highlight("Normal", colors.fg, colors.bg, nil, nil) end highlight("NormalFloat", colors.fg, colors.bg, nil, nil) - highlight("Comment", colors.comment, nil, nil, nil) + highlight("Comment", colors.comment, nil, isItalic and 'italic' or nil, nil) highlight("Constant", colors.yellow, nil, nil, nil) highlight("String", colors.yellow, nil, nil, nil) highlight("Character", colors.green, nil, nil, nil)