From e32fa3608f8e94358493ac6b1ff75f0c310b71d1 Mon Sep 17 00:00:00 2001 From: Alex Koch Date: Wed, 20 Sep 2023 08:29:35 -0600 Subject: adds emphasis option (#272) * adds emphasis option * add testing for emphasis option --------- Co-authored-by: Alex Koch --- README.md | 1 + lua/gruvbox/groups.lua | 2 +- lua/gruvbox/init.lua | 1 + tests/gruvbox/gruvbox_spec.lua | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4117ba3..b91154a 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ require("gruvbox").setup({ bold = true, italic = { strings = true, + emphasis = true, comments = true, operators = false, folds = true, diff --git a/lua/gruvbox/groups.lua b/lua/gruvbox/groups.lua index a799426..6b168b1 100644 --- a/lua/gruvbox/groups.lua +++ b/lua/gruvbox/groups.lua @@ -339,7 +339,7 @@ M.setup = function() -- @text.strong ; bold text ["@text.strong"] = { bold = config.bold }, -- @text.emphasis ; text with emphasis - ["@text.emphasis"] = { italic = config.italic.strings }, + ["@text.emphasis"] = { italic = config.italic.emphasis }, -- @text.underline ; underlined text ["@text.underline"] = { underline = config.underline }, -- @text.strike ; strikethrough text diff --git a/lua/gruvbox/init.lua b/lua/gruvbox/init.lua index d287209..caf2291 100644 --- a/lua/gruvbox/init.lua +++ b/lua/gruvbox/init.lua @@ -7,6 +7,7 @@ M.config = { bold = true, italic = { strings = true, + emphasis = true, comments = true, operators = false, folds = true, diff --git a/tests/gruvbox/gruvbox_spec.lua b/tests/gruvbox/gruvbox_spec.lua index 864740a..1934582 100644 --- a/tests/gruvbox/gruvbox_spec.lua +++ b/tests/gruvbox/gruvbox_spec.lua @@ -16,6 +16,7 @@ describe("setup", function() strikethrough = true, italic = { strings = true, + emphasis = true, comments = true, operators = false, folds = true, @@ -43,6 +44,7 @@ describe("setup", function() bold = true, italic = { strings = true, + emphasis = true, comments = true, operators = false, folds = true, -- cgit v1.2.3