aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEllison Leão <ellisonleao@gmail.com>2023-09-30 18:27:19 -0300
committerEllison Leão <ellisonleao@gmail.com>2023-09-30 18:27:19 -0300
commitd3b86c23e0fbbcd338900241ca55f3cef1da6111 (patch)
tree8ddd73bc4e897fc487b6bf121d293741993cd3bb /README.md
parente7b755d869296c0e100add9c940fb3024a41aa8a (diff)
downloadgruvbox-d3b86c23e0fbbcd338900241ca55f3cef1da6111.tar.gz
gruvbox-d3b86c23e0fbbcd338900241ca55f3cef1da6111.tar.xz
fix: diff highlights for diffview.nvim, neogit, fugitive
ref: https://github.com/ellisonleao/gruvbox.nvim/discussions/239
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/README.md b/README.md
index 460934b..1bfe01d 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
<a href="#"><img alt="Made with Lua" src="https://img.shields.io/badge/Made%20with%20Lua-blueviolet.svg?style=for-the-badge&logo=lua" style="vertical-align:center" /></a>
</p>
-A port of [gruvbox community](https://github.com/gruvbox-community/gruvbox) theme to lua with [treesitter](https://github.com/nvim-treesitter/nvim-treesitter) support!
+A port of [gruvbox community](https://github.com/gruvbox-community/gruvbox) theme to lua with [treesitter](https://github.com/nvim-treesitter/nvim-treesitter) and [semantic highlights](https://neovim.io/doc/user/lsp.html#lsp-semantic-highlight) support!
<p align="center">
<img src="https://i.postimg.cc/fy3tnGFt/gruvbox-themes.png" />
@@ -110,6 +110,18 @@ require("gruvbox").setup({
vim.cmd("colorscheme gruvbox")
```
+It also works with treesitter groups and lsp semantic highlight tokens
+
+```lua
+require("gruvbox").setup({
+ overrides = {
+ ["@lsp.type.method"] = { bg = "#ff9900" },
+ ["@comment.lua"] = { bg = "#000000" },
+ }
+})
+vim.cmd("colorscheme gruvbox")
+```
+
Please note that the override values must follow the attributes from the highlight group map, such as:
- **fg** - foreground color
@@ -117,4 +129,4 @@ Please note that the override values must follow the attributes from the highlig
- **bold** - true or false for bold font
- **italic** - true or false for italic font
-Other values can be seen in `:h synIDattr`
+Other values can be seen in [`synIDattr`](<https://neovim.io/doc/user/builtin.html#synIDattr()>)