summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin.lua
blob: 7016b0a99a961ef286ca7f7b7be6e5b6575ae5dc (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
--[[
A collection of builtin pipelines for telesceope.

Meant for both example and for easy startup.
--]]

local Finder = require('telescope.finder')
local pickers = require('telescope.pickers')

local builtin = {}

builtin.rg_vimgrep = setmetatable({}, {
  __call = function(t, ...)
    -- builtin.rg_vimgrep("--type lua function")
    print(t, ...)
  end
})

builtin.rg_vimgrep.finder = Finder:new {
  fn_command = function(prompt)
    return string.format('rg --vimgrep %s', prompt)
  end,

  responsive = false
}

builtin.rg_vimgrep.picker = pickers.new {
}


return builtin