docs: add a note about mapleader

This commit is contained in:
Folke Lemaitre 2022-12-20 21:15:39 +01:00
parent 06ac8bda66
commit 78e9d6c01d
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@
## 📦 Installation ## 📦 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**
<!-- bootstrap:start --> <!-- bootstrap:start -->
@ -66,6 +66,8 @@ require("lazy").setup(plugins, opts)
```lua ```lua
-- example using a list of specs with the default options -- 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({ require("lazy").setup({
"folke/which-key.nvim", "folke/which-key.nvim",
{ "folke/neoconf.nvim", cmd = "Neoconf" }, { "folke/neoconf.nvim", cmd = "Neoconf" },