🐇 Lazy Efficiency 💤

- Made tweaks to plugin loading triggers that decreased loading time by
nearly half!
- On my system:
  - Previously: ~89ms
  - Now:        ~52ms
This commit is contained in:
2024-07-17 06:34:33 -04:00
parent dac0a8b790
commit c5610a92fe
5 changed files with 21 additions and 14 deletions
+7 -5
View File
@@ -47,6 +47,7 @@ return {
{ import = "lazyvim.plugins.extras.vscode" }, { import = "lazyvim.plugins.extras.vscode" },
{ {
"echasnovski/mini.align", "echasnovski/mini.align",
event = "InsertEnter",
config = function() config = function()
require("mini.align").setup() require("mini.align").setup()
end, end,
@@ -90,13 +91,14 @@ return {
}, },
{ {
"norcalli/nvim-colorizer.lua", "norcalli/nvim-colorizer.lua",
event = "InsertEnter",
config = function() config = function()
require("colorizer").setup() require("colorizer").setup()
end, end,
}, },
{ {
"gbprod/substitute.nvim", "gbprod/substitute.nvim",
event = "VeryLazy", event = "InsertEnter",
opts = { opts = {
yank_substituted_text = false, yank_substituted_text = false,
preserve_cursor_position = true, preserve_cursor_position = true,
@@ -105,10 +107,10 @@ return {
}, },
}, },
}, },
{ -- {
"vim-scripts/AnsiEsc.vim", -- "vim-scripts/AnsiEsc.vim",
lazy = true, -- event = "VeryLazy",
}, -- },
{ {
"shellRaining/hlchunk.nvim", "shellRaining/hlchunk.nvim",
event = "BufEnter", event = "BufEnter",
+2
View File
@@ -33,6 +33,7 @@ return {
{ {
"gorbit99/codewindow.nvim", "gorbit99/codewindow.nvim",
version = false, version = false,
event = "InsertEnter",
config = function() config = function()
require("codewindow").setup({ require("codewindow").setup({
active_in_terminals = false, -- Should the minimap activate for terminal buffers active_in_terminals = false, -- Should the minimap activate for terminal buffers
@@ -67,6 +68,7 @@ return {
}, },
{ {
"amitds1997/remote-nvim.nvim", "amitds1997/remote-nvim.nvim",
event = "VeryLazy",
version = "*", -- Pin to GitHub releases version = "*", -- Pin to GitHub releases
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", -- For standard functions "nvim-lua/plenary.nvim", -- For standard functions
+4 -4
View File
@@ -47,9 +47,9 @@ return {
vim.g.unception_block_while_host_edits = true vim.g.unception_block_while_host_edits = true
end, end,
}, },
{ { -- 🍎 Icon Picker
"ziontee113/icon-picker.nvim", "ziontee113/icon-picker.nvim",
event = "VeryLazy", event = "InsertEnter",
config = function() config = function()
require("icon-picker").setup({ disable_legacy_commands = true }) require("icon-picker").setup({ disable_legacy_commands = true })
end, end,
@@ -70,7 +70,7 @@ return {
}, },
{ {
"mistricky/codesnap.nvim", "mistricky/codesnap.nvim",
event = "VeryLazy", event = "InsertEnter",
build = "make", build = "make",
opts = { opts = {
save_path = "~/Pictures/Screenshots/", save_path = "~/Pictures/Screenshots/",
@@ -84,7 +84,7 @@ return {
}, },
{ {
"mistweaverco/kulala.nvim", "mistweaverco/kulala.nvim",
lazy = true, event = "InsertEnter",
config = function() config = function()
require("kulala").setup() require("kulala").setup()
end, end,
+4 -1
View File
@@ -3,10 +3,13 @@ return {
{ import = "lazyvim.plugins.extras.ui.mini-animate" }, { import = "lazyvim.plugins.extras.ui.mini-animate" },
{ {
"xiyaowong/transparent.nvim", "xiyaowong/transparent.nvim",
event = "VeryLazy",
config = true, config = true,
}, },
{ {
"gen740/SmoothCursor.nvim", "gen740/SmoothCursor.nvim",
event = "InsertEnter",
lazy = true,
config = function() config = function()
require("smoothcursor").setup({ require("smoothcursor").setup({
type = "default", type = "default",
@@ -90,7 +93,7 @@ return {
{ {
"akinsho/toggleterm.nvim", "akinsho/toggleterm.nvim",
version = false, version = false,
lazy = false, event = "VeryLazy",
config = function() config = function()
require("toggleterm").setup({ require("toggleterm").setup({
-- size can be a number or function which is passed the current terminal -- size can be a number or function which is passed the current terminal
+4 -4
View File
@@ -2,10 +2,10 @@
-- --------------------------------- WezTerm ----------------------------------- -- --------------------------------- WezTerm -----------------------------------
-- ----------------------------------------------------------------------------- -- -----------------------------------------------------------------------------
return { return {
"willothy/wezterm.nvim", "willothy/wezterm.nvim",
config = true, config = true,
cond = function() -- Using WezTerm cond = function() -- Using WezTerm
local term = os.getenv("TERM_PROGRAM") local term = os.getenv("TERM_PROGRAM")
return term and string.find(term, "WezTerm") return term and string.find(term, "WezTerm")
end, end,
} }