diff --git a/.config/nvim/lua/plugins/cloak.lua b/.config/nvim/lua/plugins/cloak.lua index c386255..07e7c05 100644 --- a/.config/nvim/lua/plugins/cloak.lua +++ b/.config/nvim/lua/plugins/cloak.lua @@ -1,5 +1,6 @@ return { "laytan/cloak.nvim", + event = { "BufReadPre", "BufNewFile" }, config = function() require("cloak").setup({ enabled = true, diff --git a/.config/nvim/lua/plugins/csvview.lua b/.config/nvim/lua/plugins/csvview.lua index f3f25f8..7220ac9 100644 --- a/.config/nvim/lua/plugins/csvview.lua +++ b/.config/nvim/lua/plugins/csvview.lua @@ -1,6 +1,7 @@ return { - 'hat0uma/csvview.nvim', - config = function() - require('csvview').setup() - end + 'hat0uma/csvview.nvim', + event = { "BufReadPre", "BufNewFile" }, + config = function() + require('csvview').setup() + end } diff --git a/.config/nvim/lua/plugins/fugitive.lua b/.config/nvim/lua/plugins/fugitive.lua index bba8684..539e9c4 100644 --- a/.config/nvim/lua/plugins/fugitive.lua +++ b/.config/nvim/lua/plugins/fugitive.lua @@ -1,5 +1,6 @@ return { "tpope/vim-fugitive", + event = "VeryLazy", dependencies = { "shumphrey/fugitive-gitlab.vim", }, diff --git a/.config/nvim/lua/plugins/harpoon.lua b/.config/nvim/lua/plugins/harpoon.lua index 86fec35..9a5f0a0 100644 --- a/.config/nvim/lua/plugins/harpoon.lua +++ b/.config/nvim/lua/plugins/harpoon.lua @@ -1,5 +1,6 @@ return { "ThePrimeagen/harpoon", + event = "VeryLazy", branch = "harpoon2", dependencies = { "nvim-lua/plenary.nvim", diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index d8d4206..bde744a 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -1,4 +1,10 @@ return { - "nvim-lua/plenary.nvim", - "ray-x/guihua.lua", + { + "nvim-lua/plenary.nvim", + event = "VeryLazy", + }, + { + "ray-x/guihua.lua", + event = "VeryLazy", + }, } diff --git a/.config/nvim/lua/plugins/neotest.lua b/.config/nvim/lua/plugins/neotest.lua index 1ee03a2..4684044 100644 --- a/.config/nvim/lua/plugins/neotest.lua +++ b/.config/nvim/lua/plugins/neotest.lua @@ -1,5 +1,6 @@ return { "nvim-neotest/neotest", + event = "VeryLazy", dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", diff --git a/.config/nvim/lua/plugins/oil.lua b/.config/nvim/lua/plugins/oil.lua index 9e391dc..130cc82 100644 --- a/.config/nvim/lua/plugins/oil.lua +++ b/.config/nvim/lua/plugins/oil.lua @@ -1,7 +1,6 @@ return { "stevearc/oil.nvim", opts = {}, - commit = "18272aba9d00a3176a5443d50dbb4464acc167bd", -- Optional dependencies dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() diff --git a/.config/nvim/lua/plugins/scissors.lua b/.config/nvim/lua/plugins/scissors.lua index 13dd72a..40a4791 100644 --- a/.config/nvim/lua/plugins/scissors.lua +++ b/.config/nvim/lua/plugins/scissors.lua @@ -1,6 +1,7 @@ return { "chrisgrieser/nvim-scissors", event = "VeryLazy", + lazy = true, dependencies = "nvim-telescope/telescope.nvim", opts = { snippetDir = "~/.config/nvim/snippets", diff --git a/.config/nvim/lua/plugins/tmux.lua b/.config/nvim/lua/plugins/tmux.lua index 01f1f93..e0cc9ff 100644 --- a/.config/nvim/lua/plugins/tmux.lua +++ b/.config/nvim/lua/plugins/tmux.lua @@ -1,5 +1,6 @@ return { "aserowy/tmux.nvim", + event = "VeryLazy", config = function() require("tmux").setup({ copy_sync = { diff --git a/.config/nvim/lua/plugins/todo-comments.lua b/.config/nvim/lua/plugins/todo-comments.lua index a0151b7..38db7fb 100644 --- a/.config/nvim/lua/plugins/todo-comments.lua +++ b/.config/nvim/lua/plugins/todo-comments.lua @@ -1,5 +1,6 @@ return { "folke/todo-comments.nvim", + event = "VeryLazy", dependencies = { "nvim-lua/plenary.nvim" }, config = function() require("todo-comments").setup() diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua index fc718d4..e8689e6 100644 --- a/.config/nvim/lua/plugins/trouble.lua +++ b/.config/nvim/lua/plugins/trouble.lua @@ -1,5 +1,6 @@ return { "folke/trouble.nvim", + event = { "BufReadPre", "BufNewFile" }, opts = {}, cmd = "Trouble", keys = { diff --git a/.config/nvim/lua/plugins/undotree.lua b/.config/nvim/lua/plugins/undotree.lua index a1bd08c..3e09bb3 100644 --- a/.config/nvim/lua/plugins/undotree.lua +++ b/.config/nvim/lua/plugins/undotree.lua @@ -1,5 +1,6 @@ return { "mbbill/undotree", + event = "VeryLazy", config = function() if vim.fn.has("persistent_undo") == 0 then return