aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/lua/configs/telescope.lua
blob: 60828e9d6d4daa66f36a547afb73bece952a47c0 (plain)
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
return {
  defaults = {
    mappings = {
      i = {
        -- ["<c-j>"] = "move_selection_next",
        -- ["<c-k>"] = "move_selection_previous",
        ["<C-w>"] = require("telescope.actions.layout").toggle_preview,
        ["<C-u>"] = false,
      },
    },
    layout_config = {
      horizontal = {
        prompt_position = "bottom",
      },
      vertical = { height = 0.8 },
      -- other layout configuration here
      preview_cutoff = 0,
    },
  },
  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 = {
    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("aerial")
  end
}