From f63bb12b4a10192455d5f722869a083850d9e4a1 Mon Sep 17 00:00:00 2001 From: Roman Date: Sun, 28 Jun 2026 00:17:17 +0200 Subject: [PATCH] better telescope --- .../nvim/lua/romanzy/plugins/telescope.lua | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/romanzy/plugins/telescope.lua b/nvim/.config/nvim/lua/romanzy/plugins/telescope.lua index 540fcdb..3e50ba6 100644 --- a/nvim/.config/nvim/lua/romanzy/plugins/telescope.lua +++ b/nvim/.config/nvim/lua/romanzy/plugins/telescope.lua @@ -9,4 +9,31 @@ vim.pack.add({ }, }) -require("telescope").setup({}) +require("telescope").setup({ + defaults = { + preview = { + filesize_limit = 0.1, -- in MB + }, + initial_mode = "insert", + winblend = 30, + file_ignore_patterns = { + "%.git/.*", + "^%./lib/.*", + "^%./bin/.*", + "%.cache/.*", + ".*%.[od]", + }, + layout_strategy = "flex", + }, + pickers = { + find_files = { + hidden = true, + follow = true, + }, + live_grep = { + hidden = true, + follow = true, + initial_mode = "insert", + }, + }, +})