From 0ada6c6e7e138df92f5009b6952f4ac41248305a Mon Sep 17 00:00:00 2001 From: Jacob Scott Date: Sun, 24 Mar 2024 01:29:19 +0000 Subject: [PATCH] Update README.md Add a recommendation to use 'keys' to set the keybinding to load lazygit.nvim if using lazy.nvim. If the keybinding is set elsewhere, e.g. in a config() function, the plugin won't be loaded the first time this is run - the user will have to use `: LazyGit` first. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d29e2a1..6a4fdd2 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,11 @@ require("lazy").setup({ dependencies = { "nvim-lua/plenary.nvim", }, + -- setting the keybinding for LazyGit with 'keys' is recommended in + -- order to load the plugin when the command is run for the first time + keys = { + { "lg", "LazyGit", desc = "LazyGit" } + } }, }) ```