1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
return {
defaults = {
mappings = {
i = {
-- ["<c-j>"] = "move_selection_next",
-- ["<c-k>"] = "move_selection_previous",
["<C-e>"] = require("telescope.actions.layout").toggle_preview,
["<C-u>"] = false,
["<C-o>"] = function(p_bufnr)
require("telescope.actions").send_selected_to_qflist(p_bufnr)
vim.cmd.cfdo("edit")
end,
},
},
layout_config = {
horizontal = {
prompt_position = "bottom",
},
vertical = { height = 0.8 },
-- other layout configuration here
preview_cutoff = 0,
},
file_ignore_patterns = {
"node_modules"
},
},
pickers = {
buffers = {
show_all_buffers = true,
sort_lastused = true,
theme = "dropdown",
previewer = false,
mappings = {
i = {
["<c-d>"] = "delete_buffer",
},
n = {
["<c-d>"] = "delete_buffer",
}
}
},
},
extensions_list = {},
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
},
aerial = {
-- Display symbols as <root>.<parent>.<symbol>
show_nesting = {
["_"] = false, -- This key will be the default
json = true, -- You can set the option for specific filetypes
yaml = true,
},
},
},
on_attach = function()
require("telescope").load_extension("fzf")
require("telescope").load_extension("aerial")
end
}
|