From d395cbcdf53cfa59689131c53e16f84b7d6c3d6e Mon Sep 17 00:00:00 2001 From: Elijah Manor Date: Wed, 21 Sep 2022 09:12:34 -0500 Subject: [PATCH] Add optional packer plugins hook --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 0cf3b453..fca1624f 100644 --- a/init.lua +++ b/init.lua @@ -32,6 +32,10 @@ require('packer').startup(function(use) -- Fuzzy Finder Algorithm which requires local dependencies to be built. Only load if `make` is available use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable "make" == 1 } + -- Add custom plugins to packer from a /nvim/lua/custom/plugins.lua module + local has_plugins, plugins = pcall(require, "custom.plugins") + if has_plugins then plugins.setup(use) end + if is_bootstrap then require('packer').sync() end