From edbb278c0db743596188099594723cdf9d7b6e52 Mon Sep 17 00:00:00 2001 From: gbprod Date: Wed, 6 Sep 2023 09:19:34 +0200 Subject: [PATCH] docs: add setup for Lazy --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76a3569..149aa5b 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,25 @@ Install the theme with your preferred package manager: use 'gbprod/nord.nvim' ``` +[lazy](https://github.com/folke/lazy.nvim) + +```lua +require("lazy").setup({ + { + "gbprod/nord.nvim", + lazy = false, + priority = 1000, + config = function() + require("nord").setup({}) + vim.cmd.colorscheme("nord") + end, + }, + install = { + colorscheme = { "nord" }, + }, +}); +``` + ## 🚀 Usage Enable the colorscheme: @@ -68,7 +87,7 @@ colorscheme nord ```lua -- Lua -vim.cmd[[colorscheme nord]] +vim.cmd.colorscheme("nord") ``` ## ⚙️ Configuration