mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-10 10:11:11 +01:00
28 lines
683 B
Lua
28 lines
683 B
Lua
|
-- import telescope plugin safely
|
||
|
local telescope_setup, telescope = pcall(require, "telescope")
|
||
|
if not telescope_setup then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
-- import telescope actions safely
|
||
|
local actions_setup, actions = pcall(require, "telescope.actions")
|
||
|
if not actions_setup then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
-- configure telescope
|
||
|
telescope.setup({
|
||
|
-- configure custom mappings
|
||
|
defaults = {
|
||
|
mappings = {
|
||
|
i = {
|
||
|
["<C-k>"] = actions.move_selection_previous, -- move to prev result
|
||
|
["<C-j>"] = actions.move_selection_next, -- move to next result
|
||
|
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist, -- send selected to quickfixlist
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
|
||
|
telescope.load_extension("fzf")
|