|
22 | 22 |
|
23 | 23 | ## Usage |
24 | 24 |
|
25 | | -### Using [Lazy.nvim](https://github.com/folke/lazy.nvim) |
| 25 | +<details> |
| 26 | +<summary>Using [Lazy.nvim](https://github.com/folke/lazy.nvim)</summary> |
26 | 27 |
|
27 | 28 | ```lua |
28 | 29 | return { |
@@ -62,6 +63,72 @@ return { |
62 | 63 | } |
63 | 64 | ``` |
64 | 65 |
|
| 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 | + |
65 | 132 | ## Credits to other plugins for inspiration |
66 | 133 |
|
67 | 134 | - [folke/edgy.nvim](https://github.com/folke/edgy.nvim) |
|
0 commit comments