dotfiles/nvim-old/lua/thomas/plugins/telescope.lua

30 lines
687 B
Lua
Raw Permalink Normal View History

local telescope_setup, telescope = pcall(require, "telescope")
if not telescope_setup then
return
end
local actions_setup, actions = pcall(require, "telescope.actions")
if not actions_setup then
return
end
telescope.load_extension("fzf")
telescope.load_extension("file_browser")
telescope.setup({
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
},
},
file_ignore_patterns = {
2024-10-27 16:21:40 +00:00
"neuron/",
2024-02-18 11:47:13 +00:00
"img",
"node_modules",
".git",
},
},
})