Skip to content

Commit

Permalink
auto-generate vimdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 30, 2023
1 parent 59c3dc8 commit 61b0b3b
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions doc/gruvbox.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
*gruvbox.nvim.txt* For Neovim >= 0.8.0 Last change: 2023 September 28
*gruvbox.nvim.txt* For Neovim >= 0.8.0 Last change: 2023 September 30

==============================================================================
Table of Contents *gruvbox.nvim-table-of-contents*

1. Prerequisites |gruvbox.nvim-prerequisites|
2. Installing |gruvbox.nvim-installing|
- Using packer |gruvbox.nvim-installing-using-packer|
- Using lazy.nvim |gruvbox.nvim-installing-using-lazy.nvim|
3. Basic Usage |gruvbox.nvim-basic-usage|
4. Configuration |gruvbox.nvim-configuration|
- Overriding |gruvbox.nvim-configuration-overriding|
Expand All @@ -16,7 +18,8 @@ Table of Contents *gruvbox.nvim-table-of-contents*

A port of gruvbox community <https://github.com/gruvbox-community/gruvbox>
theme to lua with treesitter
<https://github.com/nvim-treesitter/nvim-treesitter> support!
<https://github.com/nvim-treesitter/nvim-treesitter> and |semantic highlights|
support!


==============================================================================
Expand All @@ -28,16 +31,18 @@ Neovim 0.8.0+
==============================================================================
2. Installing *gruvbox.nvim-installing*

Using `packer`

USING PACKER *gruvbox.nvim-installing-using-packer*

>lua
use { "ellisonleao/gruvbox.nvim" }
<

Using `lazy.nvim`

USING LAZY.NVIM *gruvbox.nvim-installing-using-lazy.nvim*

>lua
{ "ellisonleao/gruvbox.nvim", priority = 1000 }
{ "ellisonleao/gruvbox.nvim", priority = 1000 , setup = true, opts = ...}
<


Expand Down Expand Up @@ -65,7 +70,6 @@ Inside `init.lua`
Additional settings for gruvbox are:

>lua
-- setup must be called before loading the colorscheme
-- Default options:
require("gruvbox").setup({
terminal_colors = true, -- add neovim terminal colors
Expand Down Expand Up @@ -94,6 +98,9 @@ Additional settings for gruvbox are:
vim.cmd("colorscheme gruvbox")
<

**VERY IMPORTANT**Make sure to call setup() **BEFORE** calling the colorscheme
command, to use your custom configs


OVERRIDING *gruvbox.nvim-configuration-overriding*

Expand All @@ -111,8 +118,6 @@ You can specify your own palette colors. For example:
vim.cmd("colorscheme gruvbox")
<

More colors in the palette.lua <lua/gruvbox/palette.lua> file


HIGHLIGHT GROUPS ~

Expand All @@ -128,6 +133,18 @@ can just override it in the setup. For example:
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:

Expand All @@ -136,7 +153,7 @@ highlight group map, such as:
- **bold** - true or false for bold font
- **italic** - true or false for italic font

Other values can be seen in |synIDattr|
Other values can be seen in |`synIDattr`|

Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>

Expand Down

0 comments on commit 61b0b3b

Please sign in to comment.