Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
--window option was not being added to the arry correctly (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sanders authored Aug 6, 2021
1 parent 321d556 commit 6ecef8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/zk/adapter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ local function handle_fzf(opts)
preview = "bat -p --line-range=:$(($FZF_PREVIEW_LINES - 5)) --color always {}"
end

opts.fzf_opts["--preview"] = ("--preview=%s"):format(vim.fn.shellescape(preview))

table.insert(opts.fzf_opts, string.format("--preview=%s", vim.fn.shellescape(preview)))
local fzf_opts = table.concat(opts.fzf_opts, " ")

coroutine.wrap(
Expand Down

0 comments on commit 6ecef8b

Please sign in to comment.