mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
Just load impatient from init
if will be called multiple times if present in lazy_load.lua which is totallly unnecessary why even from there ? Yes, this does not affect the --startuptime
This commit is contained in:
parent
a20fc560f3
commit
78ddf8d624
3 changed files with 5 additions and 2 deletions
4
init.lua
4
init.lua
|
@ -1,3 +1,7 @@
|
||||||
|
vim.defer_fn(function()
|
||||||
|
pcall(require, "impatient")
|
||||||
|
end, 0)
|
||||||
|
|
||||||
require "core"
|
require "core"
|
||||||
require "core.options"
|
require "core.options"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ M.lazy_load = function(tb)
|
||||||
callback = function()
|
callback = function()
|
||||||
if tb.condition() then
|
if tb.condition() then
|
||||||
vim.api.nvim_del_augroup_by_name(tb.augroup_name)
|
vim.api.nvim_del_augroup_by_name(tb.augroup_name)
|
||||||
pcall(require, "impatient")
|
|
||||||
|
|
||||||
-- dont defer for treesitter as it will show slow highlighting
|
-- dont defer for treesitter as it will show slow highlighting
|
||||||
-- This deferring only happens only when we do "nvim filename"
|
-- This deferring only happens only when we do "nvim filename"
|
||||||
|
|
|
@ -214,7 +214,7 @@ local plugins = {
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Speed up deffered plugins
|
-- Speed up deffered plugins
|
||||||
["lewis6991/impatient.nvim"] = { module = "impatient" },
|
["lewis6991/impatient.nvim"] = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
require("core.packer").run(plugins)
|
require("core.packer").run(plugins)
|
||||||
|
|
Loading…
Reference in a new issue