Skip to content

Commit 91fc218

Browse files
committed
feat: use fzf's 0.59 --scheme=path where applicable
1 parent 86a4dc4 commit 91fc218

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lua/fzf-lua/config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ function M.normalize_opts(opts, globals, __resume_key)
686686
}
687687
else
688688
return "fzf", opts.__FZF_VERSION, {
689+
["0.59"] = { fzf_opts = { ["--scheme"] = "path" } },
689690
["0.56"] = { fzf_opts = { ["--gap"] = true } },
690691
["0.54"] = {
691692
fzf_opts = {

lua/fzf-lua/defaults.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ M.defaults.files = {
342342
cwd_prompt = true,
343343
cwd_prompt_shorten_len = 32,
344344
cwd_prompt_shorten_val = 1,
345-
fzf_opts = { ["--multi"] = true },
345+
fzf_opts = { ["--multi"] = true, ["--scheme"] = "path" },
346346
_fzf_nth_devicons = true,
347347
git_status_cmd = {
348348
"git", "-c", "color.status=false", "--no-optional-locks", "status", "--porcelain=v1" },
@@ -368,7 +368,7 @@ M.defaults.git = {
368368
file_icons = 1,
369369
color_icons = true,
370370
git_icons = true,
371-
fzf_opts = { ["--multi"] = true },
371+
fzf_opts = { ["--multi"] = true, ["--scheme"] = "path" },
372372
_fzf_nth_devicons = true,
373373
_actions = function() return M.globals.actions.files end,
374374
winopts = { preview = { winopts = { cursorline = false } } },
@@ -529,7 +529,7 @@ M.defaults.args = {
529529
file_icons = 1,
530530
color_icons = true,
531531
git_icons = false,
532-
fzf_opts = { ["--multi"] = true },
532+
fzf_opts = { ["--multi"] = true, ["--scheme"] = "path" },
533533
_fzf_nth_devicons = true,
534534
_actions = function() return M.globals.actions.files end,
535535
actions = { ["ctrl-x"] = { fn = actions.arg_del, reload = true } },

0 commit comments

Comments
 (0)