Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
delphinus committed Jul 29, 2023
1 parent 1ef1d64 commit 3507921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lua/frecency/finder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ function Finder:create_fn(initial_results, path)
local is_dead = false
local results = vim.deepcopy(initial_results)
local called = 0
---@param prompt string?
---@param _ string?
---@return table[]
return function(prompt)
return function(_)
if is_dead then
return results
end
Expand Down
4 changes: 2 additions & 2 deletions lua/frecency/picker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ function Picker:on_input_filter_cb(picker_opts)
end

---@private
---@param prompt_bufnr integer
---@param _ integer
---@return boolean
function Picker:attach_mappings(prompt_bufnr)
function Picker:attach_mappings(_)
actions.select_default:replace_if(function()
return vim.fn.complete_info().pum_visible == 1
end, function()
Expand Down

0 comments on commit 3507921

Please sign in to comment.