2022-06-08 08:47:55 +02:00
|
|
|
local telescope = require('telescope')
|
|
|
|
local actions = require('telescope.actions')
|
|
|
|
local actionsLayout = require('telescope.actions.layout')
|
|
|
|
|
|
|
|
telescope.setup({
|
2022-03-16 14:44:49 +01:00
|
|
|
defaults = {
|
|
|
|
layout_strategy = 'center',
|
|
|
|
layout_config = {
|
2022-03-21 15:49:17 +01:00
|
|
|
width = 0.6,
|
2022-03-16 14:44:49 +01:00
|
|
|
},
|
2022-03-21 15:49:17 +01:00
|
|
|
sorting_strategy = 'ascending',
|
2022-03-16 14:44:49 +01:00
|
|
|
default_mappings = {
|
|
|
|
i = {
|
2022-06-08 08:47:55 +02:00
|
|
|
["<C-j>"] = actions.move_selection_next,
|
|
|
|
["<C-k>"] = actions.move_selection_previous,
|
|
|
|
["<C-c>"] = actions.close,
|
2022-03-16 14:44:49 +01:00
|
|
|
|
2022-06-08 08:47:55 +02:00
|
|
|
["<CR>"] = actions.select_default,
|
|
|
|
["<C-h>"] = actions.which_key,
|
|
|
|
["<C-v>"] = actions.select_vertical,
|
2022-03-16 14:44:49 +01:00
|
|
|
|
2022-06-08 08:47:55 +02:00
|
|
|
["<C-p>"] = actionsLayout.toggle_preview,
|
2022-03-16 14:44:49 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
preview = {
|
|
|
|
hide_on_startup = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2022-06-08 08:47:55 +02:00
|
|
|
telescope.load_extension('custom_runs')
|