mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(loader): warn when mapleader is changed after init
This commit is contained in:
parent
540847b7cb
commit
4ca30390ec
2 changed files with 10 additions and 0 deletions
|
@ -111,6 +111,9 @@ M.options = {}
|
|||
---@type string
|
||||
M.me = nil
|
||||
|
||||
---@type string
|
||||
M.mapleader = nil
|
||||
|
||||
---@param spec LazySpec
|
||||
---@param opts? LazyConfig
|
||||
function M.setup(spec, opts)
|
||||
|
@ -143,6 +146,7 @@ function M.setup(spec, opts)
|
|||
|
||||
-- disable plugin loading since we do all of that ourselves
|
||||
vim.go.loadplugins = false
|
||||
M.mapleader = vim.g.mapleader
|
||||
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "VeryLazy",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue