From dee6b4b21b0ca6bd27ca4d708e2799206ad3cab7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 1 Mar 2023 14:09:31 +0300 Subject: [PATCH] feat: update default telescope config --- modules/utility/telescope/config.nix | 32 ++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/modules/utility/telescope/config.nix b/modules/utility/telescope/config.nix index c56d91e..135637c 100644 --- a/modules/utility/telescope/config.nix +++ b/modules/utility/telescope/config.nix @@ -60,14 +60,42 @@ in { "--with-filename", "--line-number", "--column", - "--smart-case" + "--smart-case", + "--hidden", + "--no-ignore", }, pickers = { find_command = { "${pkgs.fd}/bin/fd", }, }, - } + }, + prompt_prefix = "  ", + selection_caret = " ", + entry_prefix = " ", + initial_mode = "insert", + selection_strategy = "reset", + sorting_strategy = "ascending", + layout_strategy = "horizontal", + layout_config = { + horizontal = { + prompt_position = "top", + preview_width = 0.55, + results_width = 0.8, + }, + vertical = { + mirror = false, + }, + width = 0.8, + height = 0.8, + preview_cutoff = 120, + }, + file_ignore_patterns = { "node_modules", ".git/", "dist/", "build/", "target/", "result/" }, -- TODO: make this configurable + color_devicons = true, + path_display = { "absolute" }, + set_env = { ["COLORTERM"] = "truecolor" }, + winblend = 0, + border = {}, } ${