2022-05-16 22:20:10 +08:00
|
|
|
lua require('telescope').load_extension('menu')
|
|
|
|
lua require('telescope').load_extension('messages')
|
2022-05-19 10:08:28 +08:00
|
|
|
lua require('telescope').load_extension('project')
|
2022-05-18 13:36:05 +08:00
|
|
|
lua require('telescope').load_extension('scriptnames')
|
2022-05-21 22:57:36 +08:00
|
|
|
lua require('telescope').load_extension('neoyank')
|
2022-11-01 00:21:03 +08:00
|
|
|
lua require('telescope').load_extension('task')
|
2023-03-26 13:03:30 +08:00
|
|
|
if SpaceVim#layers#isLoaded('zettelkasten')
|
|
|
|
lua require('telescope').load_extension('zettelkasten_template')
|
|
|
|
endif
|
2022-06-02 21:44:41 +08:00
|
|
|
if filereadable(g:_spacevim_root_dir . 'bundle/telescope-fzf-native.nvim/build/libfzf.so')
|
|
|
|
\ || filereadable(g:_spacevim_root_dir . 'bundle/telescope-fzf-native.nvim/build/libfzf.dll')
|
|
|
|
lua require('telescope').load_extension('fzf')
|
|
|
|
endif
|
2023-04-22 22:10:04 +08:00
|
|
|
if g:spacevim_snippet_engine ==# 'ultisnips'
|
|
|
|
lua require('telescope').load_extension('ultisnips')
|
|
|
|
endif
|
|
|
|
|
2022-05-16 22:20:10 +08:00
|
|
|
lua <<EOF
|
|
|
|
local actions = require("telescope.actions")
|
|
|
|
require("telescope").setup{
|
2022-06-02 21:44:41 +08:00
|
|
|
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"
|
2022-05-16 22:20:10 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
sorting_strategy = "ascending",
|
2022-06-02 21:44:41 +08:00
|
|
|
layout_config = {
|
|
|
|
prompt_position = "bottom"
|
2022-05-16 22:20:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
2024-02-23 15:49:37 +08:00
|
|
|
|