mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 14:18:36 +02:00
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
This commit is contained in:
parent
e311d48c97
commit
e80aa66671
2 changed files with 35 additions and 0 deletions
4
init.lua
4
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue