From f2b483edc54ff1892d52d90177e7fb89e9a10535 Mon Sep 17 00:00:00 2001 From: tamago324 Date: Thu, 3 Dec 2020 13:54:09 +0900 Subject: [PATCH] Fix to pass opts to pickers (#301) builtins were not passing `opts` correctly, but now do. --- lua/telescope/builtin/internal.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 73db64d..c66c6de 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -88,7 +88,7 @@ internal.planets = function(opts) end internal.commands = function(opts) - pickers.new({}, { + pickers.new(opts, { prompt_title = 'Commands', finder = finders.new_table { results = (function() @@ -510,7 +510,7 @@ internal.keymaps = function(opts) end end - pickers.new({}, { + pickers.new(opts, { prompt_title = 'Key Maps', finder = finders.new_table { results = keymaps_table, @@ -530,7 +530,7 @@ end internal.filetypes = function(opts) local filetypes = vim.fn.getcompletion('', 'filetype') - pickers.new({}, { + pickers.new(opts, { prompt_title = 'Filetypes', finder = finders.new_table { results = filetypes, @@ -550,7 +550,7 @@ end internal.highlights = function(opts) local highlights = vim.fn.getcompletion('', 'highlight') - pickers.new({}, { + pickers.new(opts, { prompt_title = 'Highlights', finder = finders.new_table { results = highlights,