From e70253835c454231192cac2179864938d033f78c Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Sun, 25 Feb 2024 22:45:46 +0100 Subject: [PATCH] try different telescope layout --- lua/plugins/telescope.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 236f6c4..77a45dd 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -4,6 +4,16 @@ local builtin = require('telescope.builtin') 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', '--with-filename', '--line-number', @@ -12,10 +22,14 @@ telescope.setup { }, pickers = { live_grep = { + layout_strategy = "horizontal", mappings = { i = { [""] = actions.to_fuzzy_refine }, }, }, + find_files = { + previewer = false, + }, }, }