mirror of https://github.com/folke/lazy.nvim.git
fix(config): dont start checker/change_detection when running headless
This commit is contained in:
parent
aa1c9572aa
commit
2aa8e061f2
|
@ -272,10 +272,6 @@ function M.setup(opts)
|
|||
M.mapleader = vim.g.mapleader
|
||||
M.maplocalleader = vim.g.maplocalleader
|
||||
|
||||
if M.headless() then
|
||||
require("lazy.view.commands").setup()
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("UIEnter", {
|
||||
once = true,
|
||||
callback = function()
|
||||
|
@ -283,6 +279,9 @@ function M.setup(opts)
|
|||
end,
|
||||
})
|
||||
|
||||
if M.headless() then
|
||||
require("lazy.view.commands").setup()
|
||||
else
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "VeryLazy",
|
||||
once = true,
|
||||
|
@ -310,6 +309,7 @@ function M.setup(opts)
|
|||
})
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
Util.very_lazy()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue