1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-23 17:16:47 +00:00
dotfiles/.config/nvim/lua/plugins/telescope.lua

43 lines
942 B
Lua
Raw Normal View History

2023-04-12 18:09:30 +00:00
local telescope = require("telescope")
2022-10-01 11:46:18 +00:00
local actions = require("telescope.actions")
telescope.setup({
defaults = {
prompt_prefix = "> ",
selection_caret = "",
path_display = { "smart" },
file_ignore_patterns = { ".git/", "node_modules" },
mappings = {
i = {
2022-10-09 17:23:15 +00:00
["<C-j>"] = actions.cycle_history_next,
["<C-k>"] = actions.cycle_history_prev,
["<Down>"] = actions.move_selection_next,
["<Up>"] = actions.move_selection_previous,
2022-10-01 11:46:18 +00:00
},
},
},
pickers = {
find_files = {
find_command = { "fd", "--hidden", "--type=file", "--exclude=.git" },
},
2022-10-01 11:46:18 +00:00
live_grep = {
additional_args = function()
return { "--hidden", "-g", "!.git/" }
end,
},
},
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown({}),
},
fzf = {
case_mode = "smart_case",
2022-10-01 11:46:18 +00:00
},
},
})
telescope.load_extension("fzf")
telescope.load_extension("ui-select")
2023-02-15 19:26:06 +00:00
telescope.load_extension("yaml_schema")