Add optional packer plugins hook
This commit is contained in:
		
							parent
							
								
									34ed3f0d0c
								
							
						
					
					
						commit
						d395cbcdf5
					
				
							
								
								
									
										4
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										4
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue