🐇 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:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user