chore(nvim): use vim.loader

Improve startup performance by using `vim.loader`.

See https://www.youtube.com/watch?v=ixq3g_D3SVs
This commit is contained in:
Oliver Davies 2023-10-18 22:48:58 +02:00
parent c9af4cf4c9
commit 4f2f98069c

View file

@ -670,6 +670,10 @@ in
extraConfig = ''
lua << EOF
if vim.loader then
vim.loader.enable()
end
pcall("require", impatient)
require "opdavies.globals"