feat: enhance previewers configuration for image formats

This commit is contained in:
2024-12-11 14:58:17 -05:00
parent 32f381f221
commit aa6a54f5ab
+18 -1
View File
@@ -196,7 +196,24 @@ end
if require('data.func').check_global_var('use_fzf_lua', true, false) then
table.insert(P, 1, { import = 'lazyvim.plugins.extras.editor.fzf' })
table.insert(P, 2, { 'ibhagwan/fzf-lua', lazy = false, opts = {} })
table.insert(P, 2, {
'ibhagwan/fzf-lua',
lazy = false,
opts = {
previewers = {
builtin = {
extensions = {
-- neovim terminal only supports `viu` block output
['png'] = { 'viu', '-b' },
-- by default the filename is added as last argument
-- if required, use `{file}` for argument positioning
['svg'] = { 'viu', '-b' },
['jpg'] = { 'viu', '-b' },
},
},
},
},
})
end
return P