Skip to content

Commit

Permalink
fix: bat previewer oversight of PR #958
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 18, 2023
1 parent f2bec28 commit 407323a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/fzf-lua/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,17 @@ M.defaults = {
_ctor = previewers.fzf.cmd,
},
bat = {
cmd = vim.fn.executable("batcat") and "batcat" or "bat",
cmd = vim.fn.executable("batcat") == 1 and "batcat" or "bat",
args = "--color=always --style=numbers,changes",
_ctor = previewers.fzf.bat_async,
},
bat_native = {
cmd = vim.fn.executable("batcat") and "batcat" or "bat",
cmd = vim.fn.executable("batcat") == 1 and "batcat" or "bat",
args = "--color=always --style=numbers,changes",
_ctor = previewers.fzf.bat,
},
bat_async = {
cmd = vim.fn.executable("batcat") and "batcat" or "bat",
cmd = vim.fn.executable("batcat") == 1 and "batcat" or "bat",
args = "--color=always --style=numbers,changes",
_ctor = previewers.fzf.bat_async,
},
Expand Down

0 comments on commit 407323a

Please sign in to comment.