🐇 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" },
{
"echasnovski/mini.align",
event = "InsertEnter",
config = function()
require("mini.align").setup()
end,
@@ -90,13 +91,14 @@ return {
},
{
"norcalli/nvim-colorizer.lua",
event = "InsertEnter",
config = function()
require("colorizer").setup()
end,
},
{
"gbprod/substitute.nvim",
event = "VeryLazy",
event = "InsertEnter",
opts = {
yank_substituted_text = false,
preserve_cursor_position = true,
@@ -105,10 +107,10 @@ return {
},
},
},
{
"vim-scripts/AnsiEsc.vim",
lazy = true,
},
-- {
-- "vim-scripts/AnsiEsc.vim",
-- event = "VeryLazy",
-- },
{
"shellRaining/hlchunk.nvim",
event = "BufEnter",
+2
View File
@@ -33,6 +33,7 @@ return {
{
"gorbit99/codewindow.nvim",
version = false,
event = "InsertEnter",
config = function()
require("codewindow").setup({
active_in_terminals = false, -- Should the minimap activate for terminal buffers
@@ -67,6 +68,7 @@ return {
},
{
"amitds1997/remote-nvim.nvim",
event = "VeryLazy",
version = "*", -- Pin to GitHub releases
dependencies = {
"nvim-lua/plenary.nvim", -- For standard functions
+4 -4
View File
@@ -47,9 +47,9 @@ return {
vim.g.unception_block_while_host_edits = true
end,
},
{
{ -- 🍎 Icon Picker
"ziontee113/icon-picker.nvim",
event = "VeryLazy",
event = "InsertEnter",
config = function()
require("icon-picker").setup({ disable_legacy_commands = true })
end,
@@ -70,7 +70,7 @@ return {
},
{
"mistricky/codesnap.nvim",
event = "VeryLazy",
event = "InsertEnter",
build = "make",
opts = {
save_path = "~/Pictures/Screenshots/",
@@ -84,7 +84,7 @@ return {
},
{
"mistweaverco/kulala.nvim",
lazy = true,
event = "InsertEnter",
config = function()
require("kulala").setup()
end,
+4 -1
View File
@@ -3,10 +3,13 @@ return {
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
{
"xiyaowong/transparent.nvim",
event = "VeryLazy",
config = true,
},
{
"gen740/SmoothCursor.nvim",
event = "InsertEnter",
lazy = true,
config = function()
require("smoothcursor").setup({
type = "default",
@@ -90,7 +93,7 @@ return {
{
"akinsho/toggleterm.nvim",
version = false,
lazy = false,
event = "VeryLazy",
config = function()
require("toggleterm").setup({
-- size can be a number or function which is passed the current terminal
+4 -4
View File
@@ -2,10 +2,10 @@
-- --------------------------------- WezTerm -----------------------------------
-- -----------------------------------------------------------------------------
return {
"willothy/wezterm.nvim",
config = true,
cond = function() -- Using WezTerm
"willothy/wezterm.nvim",
config = true,
cond = function() -- Using WezTerm
local term = os.getenv("TERM_PROGRAM")
return term and string.find(term, "WezTerm")
end,
end,
}