re-added friendly-snippets without messing keybinds.
This commit is contained in:
		
							parent
							
								
									ae1fcff4be
								
							
						
					
					
						commit
						ecab268930
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -38,7 +38,7 @@ cmp.setup {
 | 
			
		|||
		['<C-e>'] = cmp.mapping.close(),
 | 
			
		||||
		['<CR>'] = cmp.mapping.confirm {
 | 
			
		||||
			behavior = cmp.ConfirmBehavior.Replace,
 | 
			
		||||
			select = true,
 | 
			
		||||
			select = false,
 | 
			
		||||
		},
 | 
			
		||||
		['<Tab>'] = function(fallback)
 | 
			
		||||
			if cmp.visible() then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,17 @@ return require('packer').startup(function(use)
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	use {'L3MON4D3/LuaSnip',
 | 
			
		||||
		requires={
 | 
			
		||||
			'rafamadriz/friendly-snippets'
 | 
			
		||||
		},
 | 
			
		||||
		config=function()
 | 
			
		||||
			require("luasnip.loaders.from_snipmate").load()
 | 
			
		||||
			require("luasnip.loaders.from_vscode").load()
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	use {'nvim-telescope/telescope.nvim',
 | 
			
		||||
		requires = {
 | 
			
		||||
			{'nvim-lua/plenary.nvim'},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue