From 8bbf75292e22190df3832512bb25f0334033520f Mon Sep 17 00:00:00 2001 From: mofiqul Date: Fri, 14 Jan 2022 16:47:01 +0530 Subject: [PATCH] Added italic comment Fix:#26 --- lua/dracula/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2