Skip to content

Commit

Permalink
fix: avoid spam
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen committed Apr 27, 2024
1 parent d4d1b81 commit 469e0f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/fzf-lua-overlay/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local M = {}
M.toggle_daily = function(_, opts)
local o = opts.__call_opts
if opts.show_daily_only then
o.cmd = 'fd --color=never --type f --hidden --follow --exclude .git'
o.cmd = 'fd --color=never --type f --hidden --follow --no-messages --exclude .git'
else
o.cmd = 'fd "[0-9][0-9]-[0-9][0-9]*" --type f'
end
Expand Down
2 changes: 1 addition & 1 deletion lua/fzf-lua-overlay/previewers/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function lazy_previewer:cmdline(o)

-- builtin preview(e.g. `buffer_or_file:extend()`) support limit static file format
-- use bat to show readme then fallback to `ls`
local bat = 'bat --color=always --style=numbers,changes {}'
local bat = 'bat --color=always --style=numbers,changes'
for name, type in vim.fs.dir(dir) do
if type == 'file' and name:lower():find('readme') then
return ('%s %s'):format(bat, vim.fs.joinpath(dir, name))
Expand Down
2 changes: 1 addition & 1 deletion lua/fzf-lua-overlay/providers/find_dots.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ M.name = 'files'
M.opts = {
prompt = 'find_dots> ',
cwd = cfg.dot_dir,
cmd = ([[rg --color=never --files --hidden %s --follow -g "!.git"]]):format(
cmd = ([[rg --color=never --files --hidden %s --follow --no-messages -g "!.git"]]):format(
table.concat(cfg.dot_dirs, ' ')
),
}
Expand Down

0 comments on commit 469e0f1

Please sign in to comment.