aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/nvim/lua/configs/telescope.lua
diff options
context:
space:
mode:
Diffstat (limited to 'vim/nvim/lua/configs/telescope.lua')
-rw-r--r--vim/nvim/lua/configs/telescope.lua48
1 files changed, 48 insertions, 0 deletions
diff --git a/vim/nvim/lua/configs/telescope.lua b/vim/nvim/lua/configs/telescope.lua
new file mode 100644
index 0000000..73c64e5
--- /dev/null
+++ b/vim/nvim/lua/configs/telescope.lua
@@ -0,0 +1,48 @@
1return {
2 defaults = {
3 mappings = {
4 i = {
5 -- ["<c-j>"] = "move_selection_next",
6 -- ["<c-k>"] = "move_selection_previous",
7 ["<C-w>"] = require("telescope.actions.layout").toggle_preview,
8 ["<C-u>"] = false,
9 },
10 },
11 layout_config = {
12 horizontal = {
13 prompt_position = "bottom",
14 },
15 vertical = { height = 0.8 },
16 -- other layout configuration here
17 preview_cutoff = 0,
18 },
19 },
20 pickers = {
21 buffers = {
22 show_all_buffers = true,
23 sort_lastused = true,
24 theme = "dropdown",
25 previewer = false,
26 mappings = {
27 i = {
28 ["<c-d>"] = "delete_buffer",
29 },
30 n = {
31 ["<c-d>"] = "delete_buffer",
32 }
33 }
34 },
35
36 },
37 extensions_list = {},
38 extensions = {
39 aerial = {
40 -- Display symbols as <root>.<parent>.<symbol>
41 show_nesting = {
42 ["_"] = false, -- This key will be the default
43 json = true, -- You can set the option for specific filetypes
44 yaml = true,
45 },
46 },
47 },
48}