Add LuaSnip choice mappings
This commit is contained in:
		
							parent
							
								
									a8c313b9cd
								
							
						
					
					
						commit
						516d3cbce7
					
				| @ -22,15 +22,15 @@ return { | ||||
|         luasnip.jump(-1) | ||||
|       end | ||||
|     end, { silent = true }) | ||||
|     -- vim.keymap.set('s', '<M-l>', function() | ||||
|     --   if luasnip.choice_active() then | ||||
|     --     luasnip.change_choice(1) | ||||
|     --   end | ||||
|     -- end, { silent = true }) | ||||
|     -- vim.keymap.set('s', '<M-h>', function() | ||||
|     --   if luasnip.choice_active() then | ||||
|     --     luasnip.change_choice(-1) | ||||
|     --   end | ||||
|     -- end, { silent = true }) | ||||
|     vim.keymap.set({ "i", "s" }, "<C-N>", function() | ||||
|       if luasnip.choice_active() then | ||||
|         luasnip.change_choice(1) | ||||
|       end | ||||
|     end, { silent = true }) | ||||
|     vim.keymap.set({ "i", "s" }, "<C-P>", function() | ||||
|       if luasnip.choice_active() then | ||||
|         luasnip.change_choice(-1) | ||||
|       end | ||||
|     end, { silent = true }) | ||||
|   end | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user