2022-05-16 22:20:10 +08:00
|
|
|
lua require('telescope').load_extension('menu')
|
|
|
|
lua require('telescope').load_extension('messages')
|
2022-05-18 13:36:05 +08:00
|
|
|
lua require('telescope').load_extension('scriptnames')
|
2022-05-16 22:20:10 +08:00
|
|
|
lua <<EOF
|
|
|
|
local actions = require("telescope.actions")
|
|
|
|
require("telescope").setup{
|
|
|
|
defaults = {
|
|
|
|
mappings = {
|
|
|
|
i = {
|
|
|
|
-- the default key binding should same as other fuzzy finder layer
|
|
|
|
-- tab move to next
|
|
|
|
["<C-j>"] = actions.move_selection_next,
|
|
|
|
["<Tab>"] = actions.move_selection_next,
|
|
|
|
["<C-k>"] = actions.move_selection_previous,
|
|
|
|
["<S-Tab>"] = actions.move_selection_previous,
|
|
|
|
["<Esc>"] = actions.close,
|
|
|
|
["<C-h>"] = "which_key"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sorting_strategy = "ascending",
|
|
|
|
layout_config = {
|
|
|
|
prompt_position = "bottom"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|