summaryrefslogtreecommitdiff
path: root/lua/telescope/init.lua
blob: 38c27ffb431958f6ad5ddc830cf262d5ca9112b5 (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
local telescope = {}

--[[
local actions = require('telescope.actions')

require('telescope').setup {
  defaults = {
    -- Picker Configuration
    border = {},
    borderchars = { '─', '│', '─', '│', '┌', '┐', '┘', '└'},
    preview_cutoff = 120,
    selection_strategy = "reset",

    -- Can choose EITHER one of these:
    layout_strategy = "horizontal",

    get_window_options = function(...) end,

    default_mappings = {
      i = {
        ["<C-n>"] = actions.move_selection_next,
        ["<C-p>"] = actions.move_selection_previous,
      },

      n = {
        ["<esc>"] = actions.close,
        ["<CR>"] = actions.goto_file_selection_edit,
      },
    },

    shorten_path = true,

    winblend = 10, -- help winblend

    winblend = {
      preview = 0,
      prompt = 20,
      results = 20,
    },

  },
}

--]]

function telescope.setup(opts)
  require('telescope.config').set_defaults(opts.defaults)
end

return telescope