You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.1 KiB
Lua

local present, fzf = pcall(require, "fzf-lua")
if not present then
return
end
local options = {
keymap = {
fzf = {
["ctrl-c"] = "abort",
["ctrl-z"] = "abort",
},
},
fzf_opts = {
['--layout'] = 'default',
['--padding'] = '3%,1%'
},
winopts = {
fullscreen = false
},
previewers = {
man = {
cmd = "man %s | col -bx",
}
},
files = {
previewer = "bat_native",
file_icons = true,
color_icons = false,
winopts = {
fullscreen = true
},
},
oldfiles = {
color_icons = false,
winopts = {
fullscreen = true
},
},
grep = {
previewer = "bat_native",
file_icons = false,
color_icons = false,
winopts = {
fullscreen = true
},
},
buffers = {
color_icons = false,
},
lines = {
color_icons = false
},
git = {
status = {
preview_pager = "delta --width=$FZF_PREVIEW_COLUMNS",
},
files = {
color_icons = false,
winopts = {
fullscreen = true
},
}
},
}
fzf.setup(options)