Skip to content

Commit e7f7280

Browse files
committed
feat(defaults): tags|btags --info=default
1 parent ea6829b commit e7f7280

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -624,11 +624,11 @@ require'fzf-lua'.setup {
624624
-- set to `false` to remove a flag
625625
-- set to '' for a non-value flag
626626
-- for raw args use `fzf_args` instead
627-
['--ansi'] = '',
628-
['--info'] = 'inline',
629-
['--height'] = '100%',
630-
['--layout'] = 'reverse',
631-
['--border'] = 'none',
627+
["--ansi"] = "",
628+
["--info"] = "inline",
629+
["--height"] = "100%",
630+
["--layout"] = "reverse",
631+
["--border"] = "none",
632632
},
633633
-- Only used when fzf_bin = "fzf-tmux", by default opens as a
634634
-- popup 80% width, 80% height (note `-p` requires tmux > 3.2)
@@ -1008,7 +1008,7 @@ require'fzf-lua'.setup {
10081008
-- 'tags_live_grep' options, `rg` prioritizes over `grep`
10091009
rg_opts = "--no-heading --color=always --smart-case",
10101010
grep_opts = "--color=auto --perl-regexp",
1011-
fzf_opts = { ["--tiebreak"] = "begin" },
1011+
fzf_opts = { ["--info"] = "default", ["--tiebreak"] = "begin" },
10121012
actions = {
10131013
-- actions inherit from 'actions.files' and merge
10141014
-- this action toggles between 'grep' and 'live_grep'
@@ -1026,7 +1026,7 @@ require'fzf-lua'.setup {
10261026
git_icons = false,
10271027
rg_opts = "--color=never --no-heading",
10281028
grep_opts = "--color=never --perl-regexp",
1029-
fzf_opts = { ["--tiebreak"] = "begin" },
1029+
fzf_opts = { ["--info"] = "default", ["--tiebreak"] = "begin" },
10301030
-- actions inherit from 'actions.files'
10311031
},
10321032
colorschemes = {

lua/fzf-lua/defaults.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ M.defaults.tags = {
499499
fzf_opts = {
500500
["--delimiter"] = string.format("'[:%s]'", utils.nbsp),
501501
["--tiebreak"] = "begin",
502+
["--info"] = "default",
502503
},
503504
_actions = function() return M.globals.actions.files end,
504505
actions = { ["ctrl-g"] = { actions.grep_lgrep } },
@@ -518,6 +519,7 @@ M.defaults.btags = {
518519
["--delimiter"] = string.format("'[:%s]'", utils.nbsp),
519520
["--with-nth"] = "1,-1",
520521
["--tiebreak"] = "begin",
522+
["--info"] = "default",
521523
},
522524
_actions = function() return M.globals.actions.files end,
523525
actions = { ["ctrl-g"] = false },

0 commit comments

Comments
 (0)