From e07e7489198b25aad5077924a69c468747c91b35 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Tue, 14 Jan 2025 16:44:15 +0000 Subject: [PATCH] Improve lazy.nvim installation documentation Per the [Lazy.nvim plugin spec](https://lazy.folke.io/spec#spec-setup) the options should be specified in `opts` and the main module for `setup` should be specified explicitly or autodetected by lazy.nvim. --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 09d992e..f4cce99 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,9 @@ { 'nvimdev/dashboard-nvim', event = 'VimEnter', - config = function() - require('dashboard').setup { - -- config - } - end, + opts = { + -- config + }, dependencies = { {'nvim-tree/nvim-web-devicons'}} } ```