improve startup time with shada load deferral

pull/785/head
zbirenbaum 2 years ago committed by siduck
parent e87c10f225
commit bd98d76ad6

@ -3,6 +3,13 @@ local g = vim.g
local options = require("core.utils").load_config().options
--Defer loading shada until after startup
vim.opt.shadafile = "NONE"
vim.defer_fn(function()
vim.opt.shadafile = vim.fn.expand("$HOME") .. "/.local/share/nvim/shada/main.shada"
vim.cmd[[ rsh ]]
end, 0)
opt.title = true
opt.clipboard = options.clipboard
opt.cmdheight = options.cmdheight

Loading…
Cancel
Save