diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-17 23:30:23 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-17 23:30:23 +0100 |
commit | 121082e8f286ee32897877057ff253f6d10c85ca (patch) | |
tree | 7071ec7af426ea973b120f504cbd99c8cf510a07 /lua | |
parent | c015df423694b3bd5fb888762a9910f1d1851351 (diff) |
Add telescope window settings
Diffstat (limited to 'lua')
-rw-r--r-- | lua/config/telescope.lua | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/lua/config/telescope.lua b/lua/config/telescope.lua index 1f1ea97..1447ec2 100644 --- a/lua/config/telescope.lua +++ b/lua/config/telescope.lua @@ -9,11 +9,30 @@ local actions = require("telescope.actions") telescope.setup({ defaults = { - prompt_prefix = " ", selection_caret = " ", path_display = { "smart" }, - + initial_mode = "insert", + selection_strategy = "reset", + sorting_strategy = "ascending", + layout_strategy = "horizontal", + layout_config = { + width = 0.75, + prompt_position = "top", + preview_cutoff = 120, + horizontal = { mirror = false }, + vertical = { mirror = false }, + }, + vimgrep_arguments = { + "rg", + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--smart-case", + "--hidden", + }, mappings = { i = { ["<C-n>"] = actions.cycle_history_next, @@ -45,7 +64,6 @@ telescope.setup({ ["<C-l>"] = actions.complete_tag, ["<C-_>"] = actions.which_key, -- keys from pressing <C-/> }, - n = { ["<esc>"] = actions.close, ["<CR>"] = actions.select_default, |