feat: add profiling support with environment variable configuration

This commit is contained in:
2024-08-28 06:35:28 -04:00
parent 40ad835130
commit 96a309216d
2 changed files with 63 additions and 0 deletions
+16
View File
@@ -51,6 +51,9 @@
-- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
-- The rootiest NeoVim configuration!
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OPTIONS ━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Options are configured in the lua/config/options.lua file
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ROOTIEST ━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Rootiest Configuration
require("config.rootiest").setup()
@@ -62,3 +65,16 @@ require("config.lazy")
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ROCKS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Load LuaRocks package manager and plugins
require("config.rocks")
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PROFILING ━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Load profiling package
require("config.profile")
-- Profiling options: Set by environment variable
-- ──────────────────────────────────────────────────────────────────────
-- NVIM_PROFILE=1 Start profiling at startup
-- NVIM_PROFILE_MODILE="lualine" Set profiling target to lualine
-- ──────────────────────────────────────────────────────────────────────
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ KEYMAPS ━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Keymaps are configured in the lua/config/keymaps.lua file