2022-05-18 08:21:09 +00:00
|
|
|
local telescope = require("telescope")
|
2022-02-21 14:15:15 +00:00
|
|
|
local actions = require("telescope.actions")
|
2022-05-18 08:21:09 +00:00
|
|
|
local themes = require("telescope.themes")
|
2022-02-21 14:15:15 +00:00
|
|
|
|
2022-05-18 08:21:09 +00:00
|
|
|
telescope.setup({
|
2022-02-23 20:31:57 +00:00
|
|
|
defaults = {
|
|
|
|
mappings = {
|
|
|
|
i = {
|
|
|
|
["<C-j>"] = actions.move_selection_next,
|
2022-04-02 08:50:59 +00:00
|
|
|
["<C-k>"] = actions.move_selection_previous,
|
|
|
|
["<ESC>"] = actions.close,
|
|
|
|
["<C-c>"] = actions.close
|
2022-02-23 20:31:57 +00:00
|
|
|
},
|
2022-04-02 08:50:59 +00:00
|
|
|
n = {
|
|
|
|
["<ESC>"] = actions.close,
|
2022-05-18 08:21:09 +00:00
|
|
|
["<C-c>"] = actions.close
|
2022-04-02 08:50:59 +00:00
|
|
|
}
|
2022-02-23 20:31:57 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
extensions = {
|
|
|
|
fzf = {
|
|
|
|
fuzzy = true,
|
|
|
|
override_generic_sorter = true,
|
|
|
|
override_file_sorter = true
|
2022-05-18 08:21:09 +00:00
|
|
|
},
|
|
|
|
["ui-select"] = {
|
|
|
|
themes.get_dropdown({})
|
|
|
|
},
|
2022-02-23 20:31:57 +00:00
|
|
|
}
|
2022-02-21 14:15:15 +00:00
|
|
|
})
|
2022-02-23 20:31:57 +00:00
|
|
|
|
2022-05-18 08:21:09 +00:00
|
|
|
telescope.load_extension("fzf")
|
|
|
|
telescope.load_extension("ui-select")
|