diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-07-15 17:53:30 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-07-15 17:53:30 -0400 |
| commit | c6f0142fc651dcbd2431630956d034c046293e7e (patch) | |
| tree | a53ee03b29753ad718ea711afbb6bd3bf479882e /lua/telescope/builtin.lua | |
| parent | 053417dd92066e4e03b642f663bec577c0c6e59a (diff) | |
Get simple rg example to work
Diffstat (limited to 'lua/telescope/builtin.lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua new file mode 100644 index 0000000..7016b0a --- /dev/null +++ b/lua/telescope/builtin.lua @@ -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 |
