mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(loader): warn when maplocalleader is changed after init (#1326)
* feat(loader): warn when maplocalleader is changed after init * docs: default maplocalleader --------- Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
c96fc24555
commit
0694651fd3
4 changed files with 14 additions and 1 deletions
|
@ -67,6 +67,7 @@ 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
|
||||
vim.g.maplocalleader = "\\" -- Same for `maplocalleader`
|
||||
|
||||
require("lazy").setup({
|
||||
"folke/which-key.nvim",
|
||||
|
@ -537,7 +538,7 @@ Any command can have a **bang** to make the command wait till it finished. For e
|
|||
if you want to sync lazy from the cmdline, you can use:
|
||||
|
||||
```shell
|
||||
$ nvim --headless "+Lazy! sync" +qa
|
||||
nvim --headless "+Lazy! sync" +qa
|
||||
```
|
||||
|
||||
`opts` is a table with the following key-values:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue