2021-03-04 07:12:31 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
-- - Telescope configuration -
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2021-12-02 15:12:10 +00:00
|
|
|
local actions = require("telescope.actions")
|
2022-04-28 13:53:54 +00:00
|
|
|
require("telescope").setup({
|
|
|
|
defaults = {
|
|
|
|
mappings = {
|
|
|
|
i = {
|
|
|
|
-- Switch out M-q and C-q since C-q will be used more often
|
|
|
|
["<M-q>"] = actions.send_to_qflist + actions.open_qflist,
|
|
|
|
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
|
|
|
|
},
|
|
|
|
n = {
|
|
|
|
-- Switch out M-q and C-q since C-q will be used more often
|
|
|
|
["<M-q>"] = actions.send_to_qflist + actions.open_qflist,
|
|
|
|
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2021-03-04 07:12:31 +00:00
|
|
|
|
2021-12-02 15:12:10 +00:00
|
|
|
require("telescope").load_extension("dap")
|
2022-05-05 10:23:39 +00:00
|
|
|
require("telescope").load_extension("ui-select")
|
2021-03-04 07:12:31 +00:00
|
|
|
|
2022-04-28 13:53:54 +00:00
|
|
|
vim.keymap.set("n", "<C-P>", function()
|
|
|
|
require("telescope.builtin").find_files()
|
|
|
|
end)
|
|
|
|
vim.keymap.set("n", "<C-M-F>", function()
|
|
|
|
require("telescope.builtin").live_grep()
|
|
|
|
end)
|