aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Koch <alex549us3@gmail.com>2023-09-20 08:29:35 -0600
committerGitHub <noreply@github.com>2023-09-20 11:29:35 -0300
commite32fa3608f8e94358493ac6b1ff75f0c310b71d1 (patch)
tree6bbafbb56af93db94e5f9c9927b54206b076708d
parent7fb36e0f67aa6f3d7f3e54f37ca7032ea1af0b59 (diff)
downloadgruvbox-e32fa3608f8e94358493ac6b1ff75f0c310b71d1.tar.gz
gruvbox-e32fa3608f8e94358493ac6b1ff75f0c310b71d1.tar.xz
adds emphasis option (#272)
* adds emphasis option * add testing for emphasis option --------- Co-authored-by: Alex Koch <alex.koch@entrust.com>
-rw-r--r--README.md1
-rw-r--r--lua/gruvbox/groups.lua2
-rw-r--r--lua/gruvbox/init.lua1
-rw-r--r--tests/gruvbox/gruvbox_spec.lua2
4 files changed, 5 insertions, 1 deletions
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,