moved plugins to kickstart/plugins and need to require it in init.lua
This commit is contained in:
		
							parent
							
								
									c0142dd97f
								
							
						
					
					
						commit
						b195b6271b
					
				
							
								
								
									
										13
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										13
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -450,8 +450,17 @@ require('lazy').setup({
 | 
				
			||||||
  --  Here are some example plugins that I've included in the kickstart repository.
 | 
					  --  Here are some example plugins that I've included in the kickstart repository.
 | 
				
			||||||
  --  Uncomment any of the lines below to enable them (you will need to restart nvim).
 | 
					  --  Uncomment any of the lines below to enable them (you will need to restart nvim).
 | 
				
			||||||
  --
 | 
					  --
 | 
				
			||||||
  -- require 'kickstart.plugins.debug',
 | 
					  require 'kickstart.plugins.autopairs',
 | 
				
			||||||
  -- require 'kickstart.plugins.indent_line',
 | 
					  require 'kickstart.plugins.conform',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.dap',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.debug',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.fzf-telescope',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.indent_line',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.lsp-config',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.mini',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.nvim-cmp',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.treesitter',
 | 
				
			||||||
 | 
					  require 'kickstart.plugins.vim-fugitive',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`.
 | 
					  -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`.
 | 
				
			||||||
  --    For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
 | 
					  --    For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,13 +1,11 @@
 | 
				
			||||||
-- File: lua/custom/plugins/autopairs.lua
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
return {
 | 
					return {
 | 
				
			||||||
  'windwp/nvim-autopairs',
 | 
					  'windwp/nvim-autopairs',
 | 
				
			||||||
  event = 'InsertEnter',
 | 
					  event = 'InsertEnter',
 | 
				
			||||||
  -- config = true,
 | 
					  -- Optional dependency
 | 
				
			||||||
  -- use opts = {} for passing setup options
 | 
					  dependencies = { 'hrsh7th/nvim-cmp' },
 | 
				
			||||||
  -- this is equivalent to setup({}) function
 | 
					 | 
				
			||||||
  opts = {},
 | 
					 | 
				
			||||||
  config = function()
 | 
					  config = function()
 | 
				
			||||||
 | 
					    require('nvim-autopairs').setup {}
 | 
				
			||||||
 | 
					    -- If you want to automatically add `(` after selecting a function or method
 | 
				
			||||||
    local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
 | 
					    local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
 | 
				
			||||||
    local cmp = require 'cmp'
 | 
					    local cmp = require 'cmp'
 | 
				
			||||||
    cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
 | 
					    cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
 | 
				
			||||||
		Loading…
	
		Reference in New Issue