From 16971006c250f11d5ee3cfc974da0c34ab159286 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 11 Jun 2024 23:48:16 +0200 Subject: [PATCH] feat(fzf): use delta previewer for code actions when available --- lua/lazyvim/plugins/extras/editor/fzf.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazyvim/plugins/extras/editor/fzf.lua b/lua/lazyvim/plugins/extras/editor/fzf.lua index 0d616502..fbaaea8c 100644 --- a/lua/lazyvim/plugins/extras/editor/fzf.lua +++ b/lua/lazyvim/plugins/extras/editor/fzf.lua @@ -108,6 +108,9 @@ return { end, child_prefix = false, }, + code_actions = { + previewer = vim.fn.executable("delta") == 1 and "codeaction_native" or nil, + }, }, formatters = { path = {