fixed fzf preview for machines without bat

This commit is contained in:
2022-09-07 09:38:10 -05:00
parent 407b164894
commit 609953f481
+2 -1
View File
@@ -238,7 +238,8 @@ require("harpoon").setup({
-- NVIM FZF -- -- NVIM FZF --
-------------- --------------
require("fzf").default_options = { 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 {+}' ",
} }
---------------------- ----------------------