diff options
author | Elijah Manor <elijah.manor@gmail.com> | 2022-11-21 06:47:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 07:47:24 -0500 |
commit | e80aa6667166334119d567567e7d1e1eed3ae2fb (patch) | |
tree | 19dd83f5353c3d71018826c49fbdd339fff70b59 /init.lua | |
parent | e311d48c97f00d526b266c9d67c4a120eba622f7 (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.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |