Skip to content

Commit

Permalink
feat(previewer): silence syntax disabled messages (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Apr 29, 2024
1 parent f7d3023 commit 2674675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/previewer/builtin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ function Previewer.buffer_or_file:do_syntax(entry)
if self.syntax_limit_b > 0 and bytes > self.syntax_limit_b then
syntax_limit_reached = 2
end
if syntax_limit_reached > 0 then
if syntax_limit_reached > 0 and self.opts.silent == false then
utils.info(string.format(
"syntax disabled for '%s' (%s), consider increasing '%s(%d)'", entry.path,
utils._if(syntax_limit_reached == 1,
Expand Down

0 comments on commit 2674675

Please sign in to comment.