improve startup time with shada load deferral
This commit is contained in:
parent
e87c10f225
commit
bd98d76ad6
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue