summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/impatient.lua8
-rw-r--r--lua/config/init.lua1
-rw-r--r--lua/plugins.lua1
3 files changed, 10 insertions, 0 deletions
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")
diff --git a/lua/plugins.lua b/lua/plugins.lua
index ca668ab..46bfd5d 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -33,4 +33,5 @@ return {
requires = { "kyazdani42/nvim-web-devicons", opt = true },
},
{ "ahmedkhalf/project.nvim" },
+ { "lewis6991/impatient.nvim" },
}