Fix to pass opts to pickers (#301)
builtins were not passing `opts` correctly, but now do.
This commit is contained in:
@@ -88,7 +88,7 @@ internal.planets = function(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
internal.commands = function(opts)
|
internal.commands = function(opts)
|
||||||
pickers.new({}, {
|
pickers.new(opts, {
|
||||||
prompt_title = 'Commands',
|
prompt_title = 'Commands',
|
||||||
finder = finders.new_table {
|
finder = finders.new_table {
|
||||||
results = (function()
|
results = (function()
|
||||||
@@ -510,7 +510,7 @@ internal.keymaps = function(opts)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
pickers.new({}, {
|
pickers.new(opts, {
|
||||||
prompt_title = 'Key Maps',
|
prompt_title = 'Key Maps',
|
||||||
finder = finders.new_table {
|
finder = finders.new_table {
|
||||||
results = keymaps_table,
|
results = keymaps_table,
|
||||||
@@ -530,7 +530,7 @@ end
|
|||||||
internal.filetypes = function(opts)
|
internal.filetypes = function(opts)
|
||||||
local filetypes = vim.fn.getcompletion('', 'filetype')
|
local filetypes = vim.fn.getcompletion('', 'filetype')
|
||||||
|
|
||||||
pickers.new({}, {
|
pickers.new(opts, {
|
||||||
prompt_title = 'Filetypes',
|
prompt_title = 'Filetypes',
|
||||||
finder = finders.new_table {
|
finder = finders.new_table {
|
||||||
results = filetypes,
|
results = filetypes,
|
||||||
@@ -550,7 +550,7 @@ end
|
|||||||
internal.highlights = function(opts)
|
internal.highlights = function(opts)
|
||||||
local highlights = vim.fn.getcompletion('', 'highlight')
|
local highlights = vim.fn.getcompletion('', 'highlight')
|
||||||
|
|
||||||
pickers.new({}, {
|
pickers.new(opts, {
|
||||||
prompt_title = 'Highlights',
|
prompt_title = 'Highlights',
|
||||||
finder = finders.new_table {
|
finder = finders.new_table {
|
||||||
results = highlights,
|
results = highlights,
|
||||||
|
|||||||
Reference in New Issue
Block a user