25 lines
589 B
Lua
Raw Normal View History

2022-11-25 12:03:22 +08:00
local status, telescope = pcall(require, "telescope")
if not status then
vim.notify("没有找到 telescope")
return
end
telescope.setup({
defaults = {
-- 打开弹窗后进入的初始模式,默认为 insert也可以是 normal
initial_mode = "insert",
-- 窗口内快捷键
mappings = require("keybindings").telescopeList,
},
pickers = {
-- 内置 pickers 配置
find_files = {
-- 查找文件换皮肤,支持的参数有: dropdown, cursor, ivy
-- theme = "dropdown",
}
},
extensions = {
-- 扩展插件配置
},
})