From df4ff8dc6fd227f2da74aa7e71ea3e5f0eca85bb Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sun, 11 Jul 2021 12:20:15 +0530 Subject: [PATCH] lazy load some plugins --- lua/pluginList.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lua/pluginList.lua b/lua/pluginList.lua index ba7fdc5..7029811 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -84,7 +84,10 @@ return packer.startup( require("plugins.compe").snippets() end }, - "rafamadriz/friendly-snippets" + { + "rafamadriz/friendly-snippets", + event = "InsertCharPre" + } } } @@ -110,9 +113,7 @@ return packer.startup( "nvim-telescope/telescope.nvim", requires = { {"nvim-lua/popup.nvim"}, - {"nvim-lua/plenary.nvim"}, - {"nvim-telescope/telescope-fzf-native.nvim", run = "make"}, - {"nvim-telescope/telescope-media-files.nvim"} + {"nvim-lua/plenary.nvim"} }, cmd = "Telescope", config = function() @@ -120,6 +121,13 @@ return packer.startup( end } + use {"nvim-telescope/telescope-fzf-native.nvim", run = "make", cmd = "Telescope"} + + use { + "nvim-telescope/telescope-media-files.nvim", + cmd = "Telescope" + } + -- git stuff use { "lewis6991/gitsigns.nvim",