summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorElijah Manor <elijah.manor@gmail.com>2022-11-21 06:47:24 -0600
committerGitHub <noreply@github.com>2022-11-21 07:47:24 -0500
commite80aa6667166334119d567567e7d1e1eed3ae2fb (patch)
tree19dd83f5353c3d71018826c49fbdd339fff70b59 /init.lua
parente311d48c97f00d526b266c9d67c4a120eba622f7 (diff)
Add optional packer plugins hook (#20)
* Add optional packer plugins hook * Provide help in README and simplify module * Fix spelling and tweak verbiage about after/plugin
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 5ed766c..88c3857 100644
--- a/init.lua
+++ b/init.lua
@@ -57,6 +57,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 /nvim/lua/custom/plugins.lua
+ local has_plugins, plugins = pcall(require, "custom.plugins")
+ if has_plugins then plugins(use) end
+
if is_bootstrap then
require('packer').sync()
end