diff --git a/lua/config.lua b/lua/config.lua index 7759778..33a9ce5 100644 --- a/lua/config.lua +++ b/lua/config.lua @@ -238,7 +238,8 @@ require("harpoon").setup({ -- NVIM FZF -- -------------- require("fzf").default_options = { - fzf_cli_args = " --height 100% --preview='bat --color=always --style=header,grid --line-range :300 {}' ", + --fzf_cli_args = " --height 100% --preview='bat --color=always --style=header,grid --line-range :300 {}' ", + fzf_cli_args = " --height 100% --preview='[[ -n \"$(command -v bat)\" ]] && bat --color=always --style=header,grid --line-range :300 {} || strings {+}' ", } ----------------------