From 78e9d6c01de51c92e06284b7af25511fa633a9f7 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 20 Dec 2022 21:15:39 +0100 Subject: [PATCH] docs: add a note about mapleader --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 517bc1f..ad24d68 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ ## 📦 Installation -You can use the following Lua code to bootstrap **lazy.nvim** +You can add the following Lua code to your `init.lua` to bootstrap **lazy.nvim** @@ -66,6 +66,8 @@ require("lazy").setup(plugins, opts) ```lua -- example using a list of specs with the default options +vim.g.mapleader = " " -- make sure to set `mapleader` before lazy so your mappings are correct + require("lazy").setup({ "folke/which-key.nvim", { "folke/neoconf.nvim", cmd = "Neoconf" },