defer and restore shada
This commit is contained in:
parent
bd98d76ad6
commit
d8dabe9e5e
@ -26,6 +26,7 @@ M.options = {
|
|||||||
updatetime = 250,
|
updatetime = 250,
|
||||||
undofile = true,
|
undofile = true,
|
||||||
fillchars = { eob = " " },
|
fillchars = { eob = " " },
|
||||||
|
shadafile = vim.opt.shadafile,
|
||||||
|
|
||||||
-- NvChad options
|
-- NvChad options
|
||||||
nvChad = {
|
nvChad = {
|
||||||
|
@ -80,3 +80,10 @@ local disabled_built_ins = {
|
|||||||
for _, plugin in pairs(disabled_built_ins) do
|
for _, plugin in pairs(disabled_built_ins) do
|
||||||
g["loaded_" .. plugin] = 1
|
g["loaded_" .. plugin] = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--Defer loading shada until after startup_
|
||||||
|
vim.opt.shadafile = "NONE"
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.opt.shadafile = require("core.utils").load_config().options.shadafile
|
||||||
|
vim.cmd [[ rsh ]]
|
||||||
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user