diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-11-28 22:11:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-28 22:11:46 +0100 |
| commit | 7dd79bf2efb5e285c9ff2d2033f08bb39936016d (patch) | |
| tree | 27320fa3797f2cf782a7376bebbf5cf3b7964b9a /lua/telescope/builtin/internal.lua | |
| parent | 7514137e2acade815fec910ceedd9a08b9d5200f (diff) | |
Fix builtin.builtin for lsp and git modules (#300)
Diffstat (limited to 'lua/telescope/builtin/internal.lua')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 76bc969..c50e04b 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -22,22 +22,12 @@ internal.builtin = function(opts) local objs = {} - local modules = { - require('telescope.builtin.internal'), - require('telescope.builtin.git'), - require('telescope.builtin.lsp'), - require('telescope.builtin.files'), - } - - for _, m in ipairs(modules) do - for k, v in pairs(m) do - local debug_info = debug.getinfo(v) - - table.insert(objs, { - filename = string.sub(debug_info.source, 2), - text = k, - }) - end + for k, v in pairs(require'telescope.builtin') do + local debug_info = debug.getinfo(v) + table.insert(objs, { + filename = string.sub(debug_info.source, 2), + text = k, + }) end pickers.new(opts, { |
