fix(picker): rename
This commit is contained in:
parent
46cd509747
commit
a54e6398cf
4 changed files with 4 additions and 4 deletions
|
|
@ -54,7 +54,7 @@ local function contest_picker(platform)
|
|||
})
|
||||
end
|
||||
|
||||
function M.picker()
|
||||
function M.pick()
|
||||
local fzf = require('fzf-lua')
|
||||
local platforms = picker_utils.get_platforms()
|
||||
local entries = vim.tbl_map(function(platform)
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ local function contest_picker(opts, platform)
|
|||
:find()
|
||||
end
|
||||
|
||||
function M.picker(opts)
|
||||
function M.pick(opts)
|
||||
opts = opts or {}
|
||||
|
||||
local platforms = picker_utils.get_platforms()
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ describe('cp.fzf_lua', function()
|
|||
it('returns module with picker function', function()
|
||||
local fzf_lua_cp = require('cp.pickers.fzf_lua')
|
||||
assert.is_table(fzf_lua_cp)
|
||||
assert.is_function(fzf_lua_cp.picker)
|
||||
assert.is_function(fzf_lua_cp.pick)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ describe('cp.telescope', function()
|
|||
it('returns module with picker function', function()
|
||||
local telescope_cp = require('cp.pickers.telescope')
|
||||
assert.is_table(telescope_cp)
|
||||
assert.is_function(telescope_cp.picker)
|
||||
assert.is_function(telescope_cp.pick)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue