From d2f2c2504e6f7257b28be6b2857301e3e8f2d241 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 12 Jan 2022 22:56:16 +0100 Subject: Add impatient --- lua/config/impatient.lua | 8 ++++++++ lua/config/init.lua | 1 + 2 files changed, 9 insertions(+) create mode 100644 lua/config/impatient.lua (limited to 'lua/config') diff --git a/lua/config/impatient.lua b/lua/config/impatient.lua new file mode 100644 index 0000000..e902108 --- /dev/null +++ b/lua/config/impatient.lua @@ -0,0 +1,8 @@ +-- Speeds up loading of lua modules. + +local status_ok, impatient = pcall(require, "impatient") +if not status_ok then + return +end + +impatient.enable_profile() diff --git a/lua/config/init.lua b/lua/config/init.lua index c4fe617..6f08ad3 100644 --- a/lua/config/init.lua +++ b/lua/config/init.lua @@ -12,3 +12,4 @@ require("config.nvim-tree") require("config.bufferline") require("config.lualine") require("config.project") +require("config.impatient") -- cgit v1.2.3-70-g09d2