diff options
| author | Ellison Leão <ellisonleao@gmail.com> | 2022-07-06 18:45:37 -0300 |
|---|---|---|
| committer | Ellison Leão <ellisonleao@gmail.com> | 2022-07-06 18:45:37 -0300 |
| commit | aee207e1ae55c44bd6a23c1a85e5e17939e3835b (patch) | |
| tree | 53be9ba01a9f71abb491dd4ebce5174a27f372f5 | |
| parent | 77dd4c2b842191fa36f5dd090d1c6d53b3d18161 (diff) | |
| download | gruvbox-aee207e1ae55c44bd6a23c1a85e5e17939e3835b.tar.gz gruvbox-aee207e1ae55c44bd6a23c1a85e5e17939e3835b.tar.xz | |
adding strikethrough option in config
update readme
| -rw-r--r-- | README.md | 22 | ||||
| -rw-r--r-- | lua/gruvbox/groups.lua | 1 | ||||
| -rw-r--r-- | lua/gruvbox/init.lua | 5 | ||||
| -rw-r--r-- | tests/gruvbox/gruvbox_spec.lua | 2 |
4 files changed, 10 insertions, 20 deletions
@@ -18,12 +18,6 @@ Neovim 0.7.0+ # Installing -Using `vim-plug` - -```vim -Plug 'ellisonleao/gruvbox.nvim' -``` - Using `packer` ```lua @@ -57,13 +51,14 @@ require("gruvbox").setup({ undercurl = true, underline = true, bold = true, - italic = true, -- will make italic comments and special strings - inverse = true, -- invert background for search, diffs, statuslines and errors + italic = true, + strikethrough = true, invert_selection = false, invert_signs = false, invert_tabline = false, invert_intend_guides = false, - contrast = "", -- can be "hard" or "soft" + inverse = true, -- invert background for search, diffs, statuslines and errors + contrast = "", -- can be "hard", "soft" or empty string overrides = {}, }) vim.cmd("colorscheme gruvbox") @@ -91,12 +86,3 @@ Please note that the override values must follow the attributes from the highlig - **italic** - true or false for italic font Other values can be seen in `:h synIDattr` - -# Additional supported plugins - -- [vim-signify](https://github.com/mhinz/vim-signify) -- [vim-startify](https://github.com/mhinz/vim-startify) -- [lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim) -- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) - -And more.. diff --git a/lua/gruvbox/groups.lua b/lua/gruvbox/groups.lua index 0acad1f..325abaf 100644 --- a/lua/gruvbox/groups.lua +++ b/lua/gruvbox/groups.lua @@ -396,6 +396,7 @@ groups.setup = function() netrwVersion = { link = "GruvboxGreen" }, -- nvim-treesitter TSStrong = { bold = config.bold }, + TSStrike = { strikethrough = config.strikethrough }, TSEmphasis = { italic = config.italic }, TSUnderline = { underline = config.underline }, -- telescope.nvim diff --git a/lua/gruvbox/init.lua b/lua/gruvbox/init.lua index d810bf6..77dec3f 100644 --- a/lua/gruvbox/init.lua +++ b/lua/gruvbox/init.lua @@ -5,13 +5,14 @@ M.config = { undercurl = true, underline = true, bold = true, - italic = true, -- will make italic comments and special strings + italic = true, + strikethrough = true, invert_selection = false, invert_signs = false, invert_tabline = false, invert_intend_guides = false, inverse = true, -- invert background for search, diffs, statuslines and errors - contrast = "", -- can be "hard" or "soft" + contrast = "", -- can be "hard", "soft" or empty string overrides = {}, } diff --git a/tests/gruvbox/gruvbox_spec.lua b/tests/gruvbox/gruvbox_spec.lua index 67c57d0..f243ed2 100644 --- a/tests/gruvbox/gruvbox_spec.lua +++ b/tests/gruvbox/gruvbox_spec.lua @@ -7,6 +7,7 @@ describe("setup", function() undercurl = true, underline = true, bold = true, + strikethrough = true, italic = true, inverse = true, invert_selection = false, @@ -26,6 +27,7 @@ describe("setup", function() undercurl = false, underline = false, bold = true, + strikethrough = true, italic = true, inverse = true, invert_selection = false, |
