2022-03-16 14:44:49 +01:00
|
|
|
local telescopeActions = require "telescope.actions"
|
|
|
|
local telescopeActionsLayout = require "telescope.actions.layout"
|
|
|
|
require('telescope').setup({
|
|
|
|
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 = {
|
|
|
|
["<C-j>"] = telescopeActions.move_selection_next,
|
|
|
|
["<C-k>"] = telescopeActions.move_selection_previous,
|
|
|
|
["<C-c>"] = telescopeActions.close,
|
|
|
|
|
|
|
|
["<CR>"] = telescopeActions.select_default,
|
|
|
|
["<C-h>"] = telescopeActions.which_key,
|
|
|
|
["<C-v>"] = telescopeActions.select_vertical,
|
|
|
|
|
|
|
|
["<C-p>"] = telescopeActionsLayout.toggle_preview,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
preview = {
|
|
|
|
hide_on_startup = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2022-03-23 16:37:26 +01:00
|
|
|
require('telescope').load_extension('custom_runs')
|