From 539b72482a462dda6db1decb76a42367c0f80437 Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Tue, 31 Jan 2023 00:08:00 +0700 Subject: [PATCH] update telecope config --- lua/user/telescope.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/lua/user/telescope.lua b/lua/user/telescope.lua index 23c45e6..92f8599 100644 --- a/lua/user/telescope.lua +++ b/lua/user/telescope.lua @@ -59,6 +59,41 @@ local options = { extensions_list = { "themes", "terms" }, + pickers = { + find_files = { + hidden = true, + }, + live_grep = { + --@usage don't include the filename in the search results + only_sort_text = true, + }, + grep_string = { + only_sort_text = true, + }, + buffers = { + initial_mode = "normal", + mappings = { + i = { + [""] = actions.delete_buffer, + }, + n = { + ["dd"] = actions.delete_buffer, + }, + }, + }, + planets = { + show_pluto = true, + show_moon = true, + }, + git_files = { + hidden = true, + show_untracked = true, + }, + colorscheme = { + enable_preview = true, + }, + }, + mappings = { i = { [""] = actions.cycle_history_next,