26 lines
		
	
	
	
		
			565 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			565 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| -- import telescope
 | |
| local telescope_setup, telescope = pcall(require, "telescope")
 | |
| if not telescope_setup then
 | |
|   return
 | |
| end
 | |
| 
 | |
| -- import teleport actions
 | |
| local actions_setup, actions = pcall(require, "telescope.actions")
 | |
| if not actions_setup then
 | |
|   return
 | |
| end
 | |
| 
 | |
| -- config
 | |
| telescope.setup({
 | |
|   defaults = {
 | |
|     mappings = {
 | |
|       i = {
 | |
|         ["<C-k>"] = actions.move_selection_previous,
 | |
|         ["<C-j>"] = actions.move_selection_next,
 | |
|         ["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
 | |
|       },
 | |
|     },
 | |
|   },
 | |
| })
 | |
| 
 | |
| telescope.load_extension("fzf")
 | 
