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 | db02fd1fad135f681b559dbc3fc1a94a423c07f3 (patch) | |
| tree | 896d9b4ba4c4d7d61df39830e99cd2b93da1f10c /nvim/init.lua | |
| parent | 65caa2c4cd149d250dbc4c42f9f1b466aac16b7e (diff) | |
| download | dots-db02fd1fad135f681b559dbc3fc1a94a423c07f3.tar.gz | |
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 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 5ed766c..88c3857 100644 --- a/nvim/init.lua +++ b/nvim/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 |