diff options
| author | Ellison <ellisonleao@gmail.com> | 2023-03-19 16:46:57 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-19 16:46:57 -0300 |
| commit | 035f8a35d7e08833e75720feeff11f3461c80903 (patch) | |
| tree | 901855cd958436592e8f41fc8ae2f005930096b5 /tests | |
| parent | c6ef9c5a3a2ece0f8635460291eb4a4c06ed3dcc (diff) | |
| download | gruvbox-035f8a35d7e08833e75720feeff11f3461c80903.tar.gz gruvbox-035f8a35d7e08833e75720feeff11f3461c80903.tar.xz | |
New Italic configs (#222)
* feat(config): adding new italic config
* using direct highlight call in vim.cmd
* adding changelog releaser
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gruvbox/gruvbox_spec.lua | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/tests/gruvbox/gruvbox_spec.lua b/tests/gruvbox/gruvbox_spec.lua index ed96742..7ed3cd5 100644 --- a/tests/gruvbox/gruvbox_spec.lua +++ b/tests/gruvbox/gruvbox_spec.lua @@ -1,14 +1,25 @@ require("plenary.reload").reload_module("gruvbox", true) local gruvbox = require("gruvbox") +local default = gruvbox.config describe("setup", function() it("works with default values", function() + gruvbox.setup() + assert.are.same(gruvbox.config, default) + end) + + it("works with old italic values", function() local expected = { undercurl = true, underline = true, bold = true, strikethrough = true, - italic = true, + italic = { + strings = true, + comments = true, + operators = false, + folds = true, + }, inverse = true, invert_selection = false, invert_signs = false, @@ -21,7 +32,7 @@ describe("setup", function() transparent_mode = false, } - gruvbox.setup() + gruvbox.setup({ italic = true }) assert.are.same(gruvbox.config, expected) end) @@ -30,8 +41,13 @@ describe("setup", function() undercurl = false, underline = false, bold = true, + italic = { + strings = true, + comments = true, + operators = false, + folds = true, + }, strikethrough = true, - italic = true, inverse = true, invert_selection = false, invert_signs = false, |
