From ecfcdead3397c759b52409d388b5c581f7b01013 Mon Sep 17 00:00:00 2001 From: Mat Date: Fri, 12 Apr 2024 15:49:32 +0000 Subject: [PATCH] fix(docs): Update lazy.nvim integration docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a97854..6b71a24 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ keymaps where you define the plugin, and `legendary.nvim` automatically detects -- where you set up legendary.nvim -- now the keymaps from the `flash.nvim` plugin spec will be automatically loaded -require('legendary').setup({ lazy_nvim = { auto_register = true } }) +require('legendary').setup({ extensions = { lazy_nvim = true } }) ``` Otherwise, register keymaps, commands, autocmds, and functions through setup, including @@ -217,6 +217,8 @@ require('legendary').setup({ }, -- load extensions extensions = { + -- automatically load keymaps from lazy.nvim's `keys` option + lazy_nvim = true, -- load keymaps and commands from nvim-tree.lua nvim_tree = true, -- load commands from smart-splits.nvim