mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-01 18:47:03 +00:00
Get simple rg example to work
This commit is contained in:
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user