Skip to content

Commit 784e044

Browse files
committed
docs(README): nix nvf example
1 parent e472619 commit 784e044

1 file changed

Lines changed: 68 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
## Usage
2424

25-
### Using [Lazy.nvim](https://github.com/folke/lazy.nvim)
25+
<details>
26+
<summary>Using [Lazy.nvim](https://github.com/folke/lazy.nvim)</summary>
2627

2728
```lua
2829
return {
@@ -62,6 +63,72 @@ return {
6263
}
6364
```
6465

66+
</details>
67+
68+
<details>
69+
<summary>Using [Nix NVF](https://github.com/NotAShelf/nvf)</summary>
70+
71+
```lua
72+
programs.nvf.settings.vim.lazy.plugins = {
73+
"zen.nvim" = {
74+
package = pkgs.vimUtils.buildVimPlugin {
75+
pname = "zen.nvim";
76+
version = "1.0.0";
77+
src = pkgs.fetchFromGitHub {
78+
owner = "sand4rt";
79+
repo = "zen.nvim";
80+
rev = "main";
81+
sha256 = "sha256-SVDf8K/eo8N9Hrx2rzMnW2uBDGWaJ8TZZNB/qdfJPfE=";
82+
};
83+
};
84+
event = [ "BufEnter" ];
85+
setupModule = "zen";
86+
setupOpts = {
87+
main = {
88+
width = 148;
89+
};
90+
top = [
91+
{ filetype = "fugitive"; }
92+
{ filetype = "git"; }
93+
{ filetype = "man"; }
94+
{ filetype = "help"; }
95+
{ filetype = "gitcommit"; }
96+
];
97+
right =
98+
lib.generators.mkLuaInline # lua
99+
''
100+
{
101+
min_width = 46,
102+
{ filetype = "copilot-chat" },
103+
{ filetype = "neotest-summary" },
104+
{ filetype = { "dapui_watches", "dapui_scopes", "dapui_stacks", "dapui_breakpoints" } },
105+
}
106+
'';
107+
bottom = [
108+
{ filetype = "dap-repl"; }
109+
{ filetype = "qf"; }
110+
{ filetype = "trouble"; }
111+
{ filetype = "noice"; } # noice opens large notifications in a buffer
112+
];
113+
left =
114+
lib.generators.mkLuaInline # lua
115+
''
116+
{
117+
min_width = 46,
118+
{ filetype = "fugitiveblame" },
119+
{ filetype = "fyler" },
120+
{ filetype = "neotree" },
121+
{ filetype = "dbui" },
122+
{ filetype = { "undotree", "diff" } },
123+
}
124+
'';
125+
};
126+
};
127+
};
128+
```
129+
130+
</details>
131+
65132
## Credits to other plugins for inspiration
66133

67134
- [folke/edgy.nvim](https://github.com/folke/edgy.nvim)

0 commit comments

Comments
 (0)