From 6d04ade3e565ef8c6c8002949c66af5232558bf5 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Wed, 20 Mar 2024 02:19:53 +0100 Subject: [PATCH] remove experimental telescope layout --- lua/plugins/telescope.lua | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 4fc5d0d..8ab6da0 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -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 = { [""] = 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', 'ff', builtin.find_files, {})