aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/telescope.lua
blob: fc67a5db158479f7ae70ec47abc46dbe365b6d74 (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
return {
  {
    'nvim-telescope/telescope.nvim',
    tag = '-2.1.8',
    dependencies = { 'nvim-lua/plenary.nvim' },
    config = function()
      local builtin = require("telescope.builtin")

      vim.keymap.set('n','<C-p>', builtin.find_files, {})
      vim.keymap.set('n','<leader>fg', builtin.live_grep, {})
    end
  },
  {
    "nvim-telescope/telescope-ui-select.nvim",
    config = function()
      require("telescope").setup {
        extensions = {
          ["ui-select"] = {
            require("telescope.themes").get_dropdown {
            }

          }
        }
      }
      require("telescope").load_extension("ui-select")
    end
  }
}