Add optional packer plugins hook

This commit is contained in:
Elijah Manor 2022-09-21 09:12:34 -05:00
parent 34ed3f0d0c
commit d395cbcdf5
1 changed files with 4 additions and 0 deletions

View File

@ -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 -- 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 } 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 if is_bootstrap then
require('packer').sync() require('packer').sync()
end end