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

--window option was not being added to the arry correctly #38

Merged
merged 1 commit into from
Aug 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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