From 0615dd6343e074938e453a9f8f3cce8c1c6b0c70 Mon Sep 17 00:00:00 2001 From: JINNOUCHI Yasushi Date: Mon, 7 Aug 2023 07:19:29 +0900 Subject: [PATCH] fix: deal with the case called with no opts (#113) --- lua/frecency/frecency.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/frecency/frecency.lua b/lua/frecency/frecency.lua index 8cc7cb7..b3a4270 100644 --- a/lua/frecency/frecency.lua +++ b/lua/frecency/frecency.lua @@ -89,9 +89,10 @@ function Frecency:setup() }) end ----@param opts FrecencyPickerOptions +---@param opts FrecencyPickerOptions? ---@return nil function Frecency:start(opts) + opts = opts or {} self.picker = Picker.new(self.database, self.finder, self.fs, self.recency, { default_workspace_tag = self.config.default_workspace, editing_bufnr = vim.api.nvim_get_current_buf(),