diff options
| author | Alex Koch <alex549us3@gmail.com> | 2023-09-20 08:29:35 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-20 11:29:35 -0300 |
| commit | e32fa3608f8e94358493ac6b1ff75f0c310b71d1 (patch) | |
| tree | 6bbafbb56af93db94e5f9c9927b54206b076708d | |
| parent | 7fb36e0f67aa6f3d7f3e54f37ca7032ea1af0b59 (diff) | |
| download | gruvbox-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.md | 1 | ||||
| -rw-r--r-- | lua/gruvbox/groups.lua | 2 | ||||
| -rw-r--r-- | lua/gruvbox/init.lua | 1 | ||||
| -rw-r--r-- | tests/gruvbox/gruvbox_spec.lua | 2 |
4 files changed, 5 insertions, 1 deletions
@@ -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, |
