mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
add some docs
This commit is contained in:
parent
0586bed5ad
commit
bfa329a456
2 changed files with 31 additions and 3 deletions
29
doc/plugins.md
Normal file
29
doc/plugins.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# List of plugins for NixVim
|
||||||
|
|
||||||
|
## Colorschemes
|
||||||
|
### Gruvbox
|
||||||
|
|
||||||
|
Just set `enable` to use the colorscheme.
|
||||||
|
|
||||||
|
```nix
|
||||||
|
programs.nixvim.colorscheme.gruvbox.enable = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Status lines
|
||||||
|
### Lightline
|
||||||
|
Lightline is a small and customizable status line for vim. It can be enabled
|
||||||
|
with `programs.nixvim.plugins.lightline.enable`, and it will try to use the
|
||||||
|
colorscheme set by the user. If you want to manually override this, set
|
||||||
|
`programs.nixvim.plugins.lightline.colorscheme` to the name of the colorscheme
|
||||||
|
to use.
|
||||||
|
|
||||||
|
```nix
|
||||||
|
programs.nixvim.plugins.lightline = {
|
||||||
|
enable = true; # Enable this plugin
|
||||||
|
|
||||||
|
# This can be set to null to reset. Defaults to global colorscheme
|
||||||
|
colorscheme = "wombat";
|
||||||
|
|
||||||
|
# ...
|
||||||
|
};
|
||||||
|
```
|
|
@ -1,4 +1,4 @@
|
||||||
{...}:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
# This just enables NixVim.
|
# This just enables NixVim.
|
||||||
|
@ -18,8 +18,7 @@
|
||||||
leader = ",";
|
leader = ",";
|
||||||
|
|
||||||
# We can create maps for every mode!
|
# We can create maps for every mode!
|
||||||
# There is .normal, .insert, .visual and .operator
|
# There is .normal, .insert, .visual, .operator, etc!
|
||||||
# These are aliased to .n, .i, .v and .o
|
|
||||||
|
|
||||||
# We can also set options:
|
# We can also set options:
|
||||||
options = {
|
options = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue