From 9a30d3caaad264537ae41a222c87eda0692bfe7d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 17 Feb 2023 10:27:08 +0000 Subject: [PATCH] Add some lazy loading setup --- config/nvim/lua/plugins.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index ce5a316f..96cc2a0a 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -1,5 +1,5 @@ local M = { - "folke/lazy.nvim", + { "folke/lazy.nvim", cmd = "Lazy" }, { "catppuccin/nvim", name = "catppuccin", @@ -25,7 +25,6 @@ local M = { vim.notify = require("notify") end, }, - "nvim-lua/plenary.nvim", { "neovim/nvim-lspconfig", dependencies = { @@ -69,6 +68,7 @@ local M = { "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "MunifTanjim/nui.nvim", }, + cmd = "Neotree", config = function() require("config.neotree") end, @@ -83,6 +83,7 @@ local M = { build = "make", }, }, + cmd = "Telescope", config = function() require("config.telescope") end, @@ -90,6 +91,7 @@ local M = { { "folke/trouble.nvim", dependencies = "nvim-tree/nvim-web-devicons", + cmd = "TroubleToggle", config = function() require("config.trouble") end, @@ -112,6 +114,12 @@ local M = { require("config.nvim-test") end, }, - { "numToStr/Comment.nvim", name = "Comment" }, + { + "numToStr/Comment.nvim", + name = "Comment", + config = function() + require("Comment") + end, + }, } return M