From 106391ffa09d07d96ce554146bf94b039341dcff Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sun, 16 Jun 2024 22:39:34 +0200 Subject: [PATCH] docs(readme): add home-manager example --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e59feb4..6cfa4c1 100755 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ require("lz.n").load {
- With paq-nvim + paq-nvim example ```lua @@ -223,6 +223,43 @@ require("lz.n").load {
+
+ + Nix (Home Manager) example + + + ```nix + programs.neovim = { + enable = true; + plugins = with pkgs.vimPlugins [ + lz-n + { + plugin = pkgs.vimPlugins.telescope-nvim; + config = '' + require("lz.n").load { + "telescope.nvim", + cmd = "Telescope", + } + ''; + type = "lua"; + optional = true; + } + { + plugin = pkgs.vimPlugins.sweetie-nvim; + config = '' + require("lz.n").load { + "sweetie.nvim", + colorscheme = "sweetie", + } + ''; + type = "lua"; + optional = true; + } + ]; + }; + ``` + +
### Structuring Your Plugins