Skip to content

Commit

Permalink
adds emphasis option (#272)
Browse files Browse the repository at this point in the history
* adds emphasis option

* add testing for emphasis option

---------

Co-authored-by: Alex Koch <[email protected]>
  • Loading branch information
alex-w-k and Alex Koch authored Sep 20, 2023
1 parent 7fb36e0 commit e32fa36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ require("gruvbox").setup({
bold = true,
italic = {
strings = true,
emphasis = true,
comments = true,
operators = false,
folds = true,
Expand Down
2 changes: 1 addition & 1 deletion lua/gruvbox/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lua/gruvbox/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ M.config = {
bold = true,
italic = {
strings = true,
emphasis = true,
comments = true,
operators = false,
folds = true,
Expand Down
2 changes: 2 additions & 0 deletions tests/gruvbox/gruvbox_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("setup", function()
strikethrough = true,
italic = {
strings = true,
emphasis = true,
comments = true,
operators = false,
folds = true,
Expand Down Expand Up @@ -43,6 +44,7 @@ describe("setup", function()
bold = true,
italic = {
strings = true,
emphasis = true,
comments = true,
operators = false,
folds = true,
Expand Down

0 comments on commit e32fa36

Please sign in to comment.