do not reset vim.env.FZF_DEFAULT_OPTS

main
bhagwan 3 years ago
parent 08430c0325
commit 0e472a9ee3

@ -2,7 +2,9 @@ local utils = require "fzf-lua.utils"
local actions = require "fzf-lua.actions"
-- Clear the default command or it would interfere with our options
vim.env.FZF_DEFAULT_OPTS = ''
-- not needed anymore, we are pretty much overriding all options
-- with our cli args, in addition this could conflict with fzf.vim
-- vim.env.FZF_DEFAULT_OPTS = ''
local M = {}

@ -50,8 +50,8 @@ M.build_fzf_cli = function(opts)
local cli = string.format(
[[ %s --layout=%s --bind=%s --prompt=%s]] ..
[[ --preview-window='%s%s' --preview=%s]] ..
[[ --expect=%s --ansi --info=inline]] ..
[[ %s %s]],
[[ --height=100%% --ansi --info=inline]] ..
[[ --expect=%s %s %s]],
opts.fzf_args or cfg.fzf_args or '',
opts.fzf_layout or cfg.fzf_layout,
utils._if(opts.fzf_binds, opts.fzf_binds,

Loading…
Cancel
Save