mirror of https://github.com/folke/lazy.nvim.git
docs: add a note about mapleader
This commit is contained in:
parent
06ac8bda66
commit
78e9d6c01d
|
@ -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" },
|
||||||
|
|
Loading…
Reference in New Issue