️ perf(lazy-load): delegate plugins to their cmd/keymaps

Increase performance: Allow plugins to only load with their commands and keymaps whenever possible
This commit is contained in:
2024-08-04 06:57:07 -04:00
parent 335fe93d8a
commit b622454835
9 changed files with 291 additions and 333 deletions
+21 -3
View File
@@ -42,15 +42,14 @@ return {
},
{ -- indent-blankline
"lukas-reineke/indent-blankline.nvim",
lazy = true,
},
{ -- Outline
import = "lazyvim.plugins.extras.editor.outline",
},
{ -- Telescope
import = "lazyvim.plugins.extras.editor.telescope",
},
{ -- FoldNav
"domharries/foldnav.nvim",
lazy = true,
keys = {
{
"<C-h>",
@@ -80,6 +79,7 @@ return {
},
{ -- Which-Key
"folke/which-key.nvim",
lazy = true,
opts = {
preset = "modern",
win = {
@@ -118,12 +118,30 @@ return {
"tris203/precognition.nvim",
lazy = true,
opts = {},
keys = {
{
"zk",
function()
require("config.rootiest").toggle_precognition()
end,
desc = "Toggle Precognition",
},
},
},
{ -- Zen Mode
"folke/zen-mode.nvim",
--event = "VeryLazy",
lazy = true,
opts = {},
keys = {
{ -- Toggle ZenMode
"<leader>z",
function()
require("zen-mode").toggle()
end,
desc = "Toggle ZenMode",
},
},
},
{ -- SmoothCursor
"gen740/SmoothCursor.nvim",