From 21d5729f730903c050cf1b2df26dc38ab04ba560 Mon Sep 17 00:00:00 2001 From: Manuuurino <2855338+manuuurino@users.noreply.github.com> Date: Wed, 10 Apr 2024 08:54:01 +0200 Subject: [PATCH] perf: set appropiate/missing lazy loading events (#856) --- .../editing-support/rainbow-delimiters-nvim/init.lua | 2 +- lua/astrocommunity/editing-support/true-zen-nvim/init.lua | 1 + lua/astrocommunity/editing-support/vim-move/init.lua | 2 +- lua/astrocommunity/lsp/garbage-day-nvim/init.lua | 1 + lua/astrocommunity/lsp/lsp-inlayhints-nvim/init.lua | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/editing-support/rainbow-delimiters-nvim/init.lua b/lua/astrocommunity/editing-support/rainbow-delimiters-nvim/init.lua index 732e672ee..542a6c0da 100644 --- a/lua/astrocommunity/editing-support/rainbow-delimiters-nvim/init.lua +++ b/lua/astrocommunity/editing-support/rainbow-delimiters-nvim/init.lua @@ -2,7 +2,7 @@ return { { "HiPhish/rainbow-delimiters.nvim", dependencies = "nvim-treesitter/nvim-treesitter", - event = "VeryLazy", + event = "User AstroFile", main = "rainbow-delimiters.setup", }, { diff --git a/lua/astrocommunity/editing-support/true-zen-nvim/init.lua b/lua/astrocommunity/editing-support/true-zen-nvim/init.lua index bc3005658..ea22fd21e 100644 --- a/lua/astrocommunity/editing-support/true-zen-nvim/init.lua +++ b/lua/astrocommunity/editing-support/true-zen-nvim/init.lua @@ -1,5 +1,6 @@ return { "Pocco81/true-zen.nvim", + lazy = true, dependencies = { { "AstroNvim/astrocore", diff --git a/lua/astrocommunity/editing-support/vim-move/init.lua b/lua/astrocommunity/editing-support/vim-move/init.lua index e3d0ed312..cd9fa6ebf 100644 --- a/lua/astrocommunity/editing-support/vim-move/init.lua +++ b/lua/astrocommunity/editing-support/vim-move/init.lua @@ -1,4 +1,4 @@ return { "matze/vim-move", - event = "BufEnter", + event = { "User AstroFile", "InsertEnter" }, } diff --git a/lua/astrocommunity/lsp/garbage-day-nvim/init.lua b/lua/astrocommunity/lsp/garbage-day-nvim/init.lua index 791a91888..524733e2e 100644 --- a/lua/astrocommunity/lsp/garbage-day-nvim/init.lua +++ b/lua/astrocommunity/lsp/garbage-day-nvim/init.lua @@ -1,4 +1,5 @@ return { "zeioth/garbage-day.nvim", opts = {}, + event = "User AstroLspSetup", } diff --git a/lua/astrocommunity/lsp/lsp-inlayhints-nvim/init.lua b/lua/astrocommunity/lsp/lsp-inlayhints-nvim/init.lua index 2825aca16..6386a44ff 100644 --- a/lua/astrocommunity/lsp/lsp-inlayhints-nvim/init.lua +++ b/lua/astrocommunity/lsp/lsp-inlayhints-nvim/init.lua @@ -1,6 +1,7 @@ return { { "lvimuser/lsp-inlayhints.nvim", + lazy = true, dependencies = { "AstroNvim/astrocore", opts = {