mirror of https://github.com/folke/lazy.nvim.git
fix: show mapleader warning with vim.schedule. Fixes #91
This commit is contained in:
parent
2200284165
commit
28f1511e0a
|
@ -65,7 +65,9 @@ function M.check(start)
|
|||
end
|
||||
|
||||
if Loader.init_done and Config.mapleader ~= vim.g.mapleader then
|
||||
vim.schedule(function()
|
||||
require("lazy.core.util").warn("You need to set `vim.g.mapleader` **BEFORE** loading lazy")
|
||||
end)
|
||||
Config.mapleader = vim.g.mapleader
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue