From 4f2f98069cffabbf5feaa2c08ab6219a5532b976 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 18 Oct 2023 22:48:58 +0200 Subject: [PATCH] chore(nvim): use vim.loader Improve startup performance by using `vim.loader`. See https://www.youtube.com/watch?v=ixq3g_D3SVs --- system/shared/home-manager.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/shared/home-manager.nix b/system/shared/home-manager.nix index af1c8af..77f916a 100644 --- a/system/shared/home-manager.nix +++ b/system/shared/home-manager.nix @@ -670,6 +670,10 @@ in extraConfig = '' lua << EOF + if vim.loader then + vim.loader.enable() + end + pcall("require", impatient) require "opdavies.globals"