summaryrefslogtreecommitdiff
path: root/ar/.config/LazyVim/lua/plugins/telescope.lua
blob: 0a96a09f6d002c062fa9ffcc18d386d3d3846089 (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
return {
  "nvim-telescope/telescope.nvim",
  keys = {
    { "<leader>/", false },
    { "<C-f>", false },
    { "<C-b>", false },
  },
  opts = function()
    local actions = require("telescope.actions")

    return {
      defaults = {
        mappings = {
          i = {
            ["<C-j>"] = actions.preview_scrolling_down,
            ["<C-k>"] = actions.preview_scrolling_up,
            ["<C-h>"] = actions.preview_scrolling_left,
            ["<C-l>"] = actions.preview_scrolling_right,
          },
        },
      },
    }
  end,
}