remove experimental telescope layout
This commit is contained in:
		
							parent
							
								
									351d1690aa
								
							
						
					
					
						commit
						6d04ade3e5
					
				
					 1 changed files with 0 additions and 27 deletions
				
			
		|  | @ -2,20 +2,8 @@ local telescope = require('telescope') | |||
| local actions = require('telescope.actions') | ||||
| local builtin = require('telescope.builtin') | ||||
| 
 | ||||
| local luasnip = require('luasnip') | ||||
| local lst = telescope.extensions.luasnip | ||||
| 
 | ||||
| telescope.setup { | ||||
|     defaults = { | ||||
|         layout_strategy = "vertical", | ||||
|         layout_config = { | ||||
|             vertical = { | ||||
|                 prompt_position = "top", | ||||
|             }, | ||||
|             horizontal = { | ||||
|                 prompt_position = "bottom", | ||||
|             }, | ||||
|         }, | ||||
|         sorting_strategy = "ascending", | ||||
|         live_grep_arguments = { 'rg', | ||||
|             '--hidden', '--no-ignore', '--color=never', | ||||
|  | @ -25,26 +13,11 @@ telescope.setup { | |||
|     }, | ||||
|     pickers = { | ||||
|         live_grep = { | ||||
|             layout_strategy = "horizontal", | ||||
|             mappings = { | ||||
|                 i = { ["<c-f>"] = actions.to_fuzzy_refine }, | ||||
|             }, | ||||
|         }, | ||||
|         find_files = { | ||||
|             previewer = false, | ||||
|         }, | ||||
|     }, | ||||
|     extensions = { | ||||
|         luasnip = { | ||||
|             search = function(entry) | ||||
|                 return lst.filter_null(entry.context.trigger) .. " " .. | ||||
|                     lst.filter_null(entry.context.name) .. " " .. | ||||
|                     entry.ft .. " " .. | ||||
|                     lst.filter_description(entry.context.name, entry.context.description) .. | ||||
|                     lst.get_docstring(luasnip, entry.ft, entry.context)[1] | ||||
|             end | ||||
|         }, | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) | ||||
|  |  | |||
		Reference in a new issue