diff --git a/lazy-lock.json b/lazy-lock.json index 0b8faed..0a26808 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,7 +1,7 @@ { "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" }, "LuaSnip": { "branch": "master", "commit": "0b4950a237ce441a6a3a947d501622453f6860ea" }, - "alpha-nvim": { "branch": "main", "commit": "331d55eb18d6e42bda4a183863a681be3ee11370" }, + "alpha-nvim": { "branch": "main", "commit": "712dc1dccd4fd515ef8bd126b3718f79d3e23b0d" }, "bufdelete.nvim": { "branch": "master", "commit": "07d1f8ba79dec59d42b975a4df1c732b2e4e37b4" }, "bufferline.nvim": { "branch": "main", "commit": "d24378edc14a675c820a303b4512af3bbc5761e9" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, @@ -28,7 +28,7 @@ "mini.indentscope": { "branch": "main", "commit": "f60e9b51a6214c73a170ffc5445ce91560981031" }, "neoscroll.nvim": { "branch": "master", "commit": "4bc0212e9f2a7bc7fe7a6bceb15b33e39f0f41fb" }, "null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" }, - "nvim-autopairs": { "branch": "master", "commit": "35493556b895f54c129918aca43ae9a63af42a1f" }, + "nvim-autopairs": { "branch": "master", "commit": "defad64afbf19381fe31488a7582bbac421d6e38" }, "nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" }, "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" }, "nvim-lsp-installer": { "branch": "main", "commit": "17e0bfa5f2c8854d1636fcd036dc8284db136baa" }, @@ -45,7 +45,7 @@ "nvim-web-devicons": { "branch": "master", "commit": "bc11ee2498de2310de5776477dd9dce65d03b464" }, "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, "smart-splits.nvim": { "branch": "master", "commit": "a2668b59bf3f9b87d47b42e7e8d08200ff0ab3b5" }, - "telescope.nvim": { "branch": "master", "commit": "20a37e43bb43c74c6091f9fea6551af0964ad45a" }, + "telescope.nvim": { "branch": "master", "commit": "18f10f28007cb8b4d50324217349c3f568684be2" }, "todo-comments.nvim": { "branch": "main", "commit": "8febc60a76feefd8203077ef78b6a262ea1a41f9" }, "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" }, "trouble.nvim": { "branch": "main", "commit": "fc4bb22b1d2cd5eb46fe61a9f6d6416d742beb5c" }, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index acb6d47..40ac275 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -39,7 +39,7 @@ return { }, { "gbprod/yanky.nvim", - event = "BufRead", + event = "InsertEnter", config = function() require("user.yanky") end, diff --git a/lua/custom/plugins/mini-animate.lua b/lua/custom/plugins/mini-animate.lua index 621fc4d..ad7f65b 100644 --- a/lua/custom/plugins/mini-animate.lua +++ b/lua/custom/plugins/mini-animate.lua @@ -2,7 +2,7 @@ return { -- animations { "echasnovski/mini.animate", - event = "BufRead", + event = "InsertEnter", opts = function() -- don't use animate when scrolling with the mouse local mouse_scrolled = false diff --git a/lua/custom/plugins/ui.lua b/lua/custom/plugins/ui.lua index b62b644..2af3814 100644 --- a/lua/custom/plugins/ui.lua +++ b/lua/custom/plugins/ui.lua @@ -17,7 +17,7 @@ return { -- require("user.lualine") -- end, -- }, - { "RRethy/vim-illuminate", event = "BufRead", enabled = true }, + { "RRethy/vim-illuminate", event = "InsertEnter", enabled = true }, -- { "cpea2506/one_monokai.nvim" }, -- { "luisiacc/gruvbox-baby", lazy = true, enabled = false }, -- { "projekt0n/github-nvim-theme", version = "v0.0.7" }, diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 17da752..51b9c54 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -10,11 +10,11 @@ if data_exists then lspghost_text = custom_cmp.lspghost_text end return { - { "hrsh7th/cmp-nvim-lsp", event = "BufRead" }, - { "hrsh7th/cmp-buffer", event = "BufRead" }, - { "hrsh7th/cmp-path", event = "BufRead" }, - { "saadparwaiz1/cmp_luasnip", event = "BufRead" }, - { "hrsh7th/cmp-nvim-lua", event = "BufRead" }, + { "hrsh7th/cmp-nvim-lsp", event = "InsertEnter" }, + { "hrsh7th/cmp-buffer", event = "InsertEnter" }, + { "hrsh7th/cmp-path", event = "InsertEnter" }, + { "saadparwaiz1/cmp_luasnip", event = "InsertEnter" }, + { "hrsh7th/cmp-nvim-lua", event = "InsertEnter" }, { "lukas-reineke/cmp-rg", enabled = cmprg }, -- experimental { "hrsh7th/cmp-calc", enabled = cmpcalc }, -- experimental { "quangnguyen30192/cmp-nvim-tags", enabled = cmptag }, -- experimental diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 88a2e8a..e6e02b4 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -43,7 +43,7 @@ return { -- snippets { "rafamadriz/friendly-snippets", - event = "BufRead", + event = "InsertEnter", config = function() require("luasnip.loaders.from_vscode").lazy_load() require("user.snippets") @@ -53,7 +53,7 @@ return { { "L3MON4D3/LuaSnip", lazy = true, - event = "BufRead", + event = "InsertEnter", -- dependencies = { -- "rafamadriz/friendly-snippets", -- event = "BufRead", @@ -109,7 +109,7 @@ return { { "williamboman/mason.nvim", lazy = true, - event = "BufRead", + event = "InsertEnter", dependencies = { "williamboman/mason-lspconfig.nvim" }, cmd = { "Mason", @@ -127,14 +127,14 @@ return { { "RRethy/vim-illuminate", event = "BufRead", lazy = true }, { "jayp0521/mason-null-ls.nvim", - lazy = true, + -- lazy = true, dependencies = { "jose-elias-alvarez/null-ls.nvim", config = function() require("user.lsp.null-ls") end, }, - event = "BufRead", + event = "InsertEnter", opts = function() require("user.mason-null-ls") end, @@ -182,12 +182,12 @@ return { { "JoosepAlviste/nvim-ts-context-commentstring", lazy = true, - event = "BufRead", + event = "InsertEnter", dependencies = "nvim-treesitter/nvim-treesitter", }, { "numToStr/Comment.nvim", - event = "BufRead", + event = "InsertEnter", config = function() require("user.comment") end, @@ -216,11 +216,11 @@ return { -- build = "npm install -g live-server", -- }, -- for multi cursor select - { "mg979/vim-visual-multi", event = "BufRead" }, + { "mg979/vim-visual-multi", event = "InsertEnter" }, -- for auto close tag { "windwp/nvim-ts-autotag", - event = "BufRead", + event = "InsertEnter", dependencies = "nvim-treesitter/nvim-treesitter", config = function() require("nvim-ts-autotag").setup() @@ -248,7 +248,7 @@ return { { "SmiteshP/nvim-navic", dependencies = "neovim/nvim-lspconfig", - event = "BufRead", + event = "InsertEnter", config = function() require("user.breadcrumb") require("user.winbar") @@ -325,7 +325,7 @@ return { end, }, -- for check startuptime - { "dstein64/vim-startuptime", cmd = "StartupTime", event = "BufRead" }, + { "dstein64/vim-startuptime", cmd = "StartupTime", event = "InsertEnter" }, -- for coloring pairs { "p00f/nvim-ts-rainbow", @@ -343,5 +343,5 @@ return { end, }, -- remove duplicate - { "tpope/vim-repeat", event = "BufRead" }, + { "tpope/vim-repeat", event = "InsertEnter" }, } diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index d32816c..f4761e7 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -44,7 +44,7 @@ return { -- for file tab { "famiu/bufdelete.nvim", - event = "BufRead", + event = "InsertEnter", }, { "akinsho/bufferline.nvim", @@ -54,7 +54,7 @@ return { end, }, -- for delete buffers (close files) without closing your windows or messing up your layout. - { "moll/vim-bbye", event = "BufRead" }, + { "moll/vim-bbye", event = "InsertEnter" }, -- for view terminal { "akinsho/toggleterm.nvim", diff --git a/lua/plugins_20230214/init.lua b/lua/plugins_20230214/init.lua index 3f596af..789281b 100644 --- a/lua/plugins_20230214/init.lua +++ b/lua/plugins_20230214/init.lua @@ -268,7 +268,7 @@ return { { "moll/vim-bbye", -- commit = "25ef93ac5a87526111f43e5110675032dbcacf56", - event = "VeryLazy", + event = "InsertEnter", }, -- for view terminal { @@ -322,7 +322,7 @@ return { -- for auto close tag { "windwp/nvim-ts-autotag", - event = "VeryLazy", + event = "InsertEnter", dependencies = "nvim-treesitter/nvim-treesitter", init = function() require("nvim-ts-autotag").setup() @@ -496,7 +496,7 @@ return { { "echasnovski/mini.indentscope", version = false, -- wait till new 0.7.0 release to put it back on semver - event = "BufReadPre", + event = "InsertEnter", opts = { -- symbol = "▏", symbol = "│",