docs: format nix examples in options
This commit is contained in:
parent
d52007581e
commit
297e2e0b65
17 changed files with 293 additions and 265 deletions
|
|
@ -130,7 +130,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
for example, you could reuse some colors from the builtin colorschemes:
|
||||
|
||||
```nix
|
||||
{
|
||||
base03.__raw = "base16.colorschemes['catppuccin'].base06";
|
||||
}
|
||||
```
|
||||
|
||||
[plugin's source code]: https://github.com/RRethy/base16-nvim/blob/master/lua/colors/init.lua
|
||||
|
|
|
|||
|
|
@ -176,17 +176,17 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
Example:
|
||||
```nix
|
||||
{
|
||||
cmp = true;
|
||||
gitsigns = true;
|
||||
nvimtree = true;
|
||||
treesitter = true;
|
||||
notify = false;
|
||||
mini = {
|
||||
enabled = true;
|
||||
indentscope_color = "";
|
||||
};
|
||||
}
|
||||
{
|
||||
cmp = true;
|
||||
gitsigns = true;
|
||||
nvimtree = true;
|
||||
treesitter = true;
|
||||
notify = false;
|
||||
mini = {
|
||||
enabled = true;
|
||||
indentscope_color = "";
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Default: see plugin source.
|
||||
|
|
|
|||
|
|
@ -92,25 +92,25 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
Example:
|
||||
```nix
|
||||
{
|
||||
wave = {
|
||||
ui = {
|
||||
float = {
|
||||
bg = "none";
|
||||
};
|
||||
{
|
||||
wave = {
|
||||
ui = {
|
||||
float = {
|
||||
bg = "none";
|
||||
};
|
||||
};
|
||||
};
|
||||
dragon = {
|
||||
syn = {
|
||||
parameter = "yellow";
|
||||
};
|
||||
};
|
||||
dragon = {
|
||||
syn = {
|
||||
parameter = "yellow";
|
||||
};
|
||||
};
|
||||
all = {
|
||||
ui = {
|
||||
bg_gutter = "none";
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
all = {
|
||||
ui = {
|
||||
bg_gutter = "none";
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
'';
|
||||
|
||||
|
|
@ -119,10 +119,10 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
Example:
|
||||
```nix
|
||||
{
|
||||
sumiInk0 = "#000000";
|
||||
fujiWhite = "#FFFFFF";
|
||||
}
|
||||
{
|
||||
sumiInk0 = "#000000";
|
||||
fujiWhite = "#FFFFFF";
|
||||
}
|
||||
```
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -202,27 +202,27 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
Example:
|
||||
```nix
|
||||
{
|
||||
all = {
|
||||
red = "#ff0000";
|
||||
{
|
||||
all = {
|
||||
red = "#ff0000";
|
||||
};
|
||||
nightfox = {
|
||||
red = "#c94f6d";
|
||||
};
|
||||
dayfox = {
|
||||
blue = {
|
||||
base = "#4d688e";
|
||||
bright = "#4e75aa";
|
||||
dim = "#485e7d";
|
||||
};
|
||||
nightfox = {
|
||||
red = "#c94f6d";
|
||||
};
|
||||
dayfox = {
|
||||
blue = {
|
||||
base = "#4d688e";
|
||||
bright = "#4e75aa";
|
||||
dim = "#485e7d";
|
||||
};
|
||||
};
|
||||
nordfox = {
|
||||
bg1 = "#2e3440";
|
||||
sel0 = "#3e4a5b";
|
||||
sel1 = "#4f6074";
|
||||
comment = "#60728a";
|
||||
};
|
||||
}
|
||||
};
|
||||
nordfox = {
|
||||
bg1 = "#2e3440";
|
||||
sel0 = "#3e4a5b";
|
||||
sel1 = "#4f6074";
|
||||
comment = "#60728a";
|
||||
};
|
||||
}
|
||||
```
|
||||
'';
|
||||
|
||||
|
|
@ -250,23 +250,23 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
Example:
|
||||
```nix
|
||||
{
|
||||
all = {
|
||||
syntax = {
|
||||
keyword = "magenta";
|
||||
conditional = "magenta.bright";
|
||||
number = "orange.dim";
|
||||
};
|
||||
git = {
|
||||
changed = "#f4a261";
|
||||
};
|
||||
{
|
||||
all = {
|
||||
syntax = {
|
||||
keyword = "magenta";
|
||||
conditional = "magenta.bright";
|
||||
number = "orange.dim";
|
||||
};
|
||||
nightfox = {
|
||||
syntax = {
|
||||
operator = "orange";
|
||||
};
|
||||
git = {
|
||||
changed = "#f4a261";
|
||||
};
|
||||
}
|
||||
};
|
||||
nightfox = {
|
||||
syntax = {
|
||||
operator = "orange";
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
'';
|
||||
|
||||
|
|
@ -293,16 +293,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
Example:
|
||||
```nix
|
||||
{
|
||||
all = {
|
||||
Whitespace.link = "Comment";
|
||||
IncSearch.bg = "palette.cyan";
|
||||
},
|
||||
nightfox.PmenuSel = {
|
||||
bg = "#73daca";
|
||||
fg = "bg0";
|
||||
};
|
||||
}
|
||||
{
|
||||
all = {
|
||||
Whitespace.link = "Comment";
|
||||
IncSearch.bg = "palette.cyan";
|
||||
},
|
||||
nightfox.PmenuSel = {
|
||||
bg = "#73daca";
|
||||
fg = "bg0";
|
||||
};
|
||||
}
|
||||
```
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue