Skip to content

Commit

Permalink
fix: make opts optional in fzf-lua.utils.fzf_version
Browse files Browse the repository at this point in the history
... so that `require("fzf-lua.utils").fzf_version()` can work, no need
to call like `require("fzf-lua.utils").fzf_version({})`.
  • Loading branch information
wookayin authored and ibhagwan committed Jan 9, 2024
1 parent 5890b84 commit 210f665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/fzf-lua/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ function M.neovim_bind_to_fzf(key)
end

function M.fzf_version(opts)
opts = opts or {}
-- temp unset "FZF_DEFAULT_OPTS" as it might fail `--version`
-- if it contains options aren't compatible with fzf's version
local FZF_DEFAULT_OPTS = vim.env.FZF_DEFAULT_OPTS
Expand Down

0 comments on commit 210f665

Please sign in to comment.