diff --git a/lua/lazyvim/plugins/extras/editor/fzf.lua b/lua/lazyvim/plugins/extras/editor/fzf.lua index 0db1c1d3..9aabfb9d 100644 --- a/lua/lazyvim/plugins/extras/editor/fzf.lua +++ b/lua/lazyvim/plugins/extras/editor/fzf.lua @@ -45,7 +45,6 @@ return { config.defaults.keymap.builtin[""] = "preview-page-down" config.defaults.keymap.builtin[""] = "preview-page-up" - actions.open_with_trouble = require("trouble.sources.fzf").actions.open -- Trouble config.defaults.actions.files["ctrl-t"] = require("trouble.sources.fzf").actions.open @@ -72,13 +71,14 @@ return { end fix(defaults) - vim.api.nvim_set_hl(0, "FzfLuaPath", { link = "Directory", default = true }) - return vim.tbl_deep_extend("force", opts, defaults, { fzf_colors = true, fzf_opts = { ["--no-scrollbar"] = true, }, + defaults = { + formatter = "path.filename_first", + }, winopts = { width = 0.8, height = 0.8, @@ -96,7 +96,6 @@ return { }, }, grep = { - formatter = "path.hl", actions = { ["alt-i"] = { actions.toggle_ignore }, ["alt-h"] = { actions.toggle_hidden }, @@ -116,21 +115,6 @@ return { previewer = vim.fn.executable("delta") == 1 and "codeaction_native" or nil, }, }, - formatters = { - path = { - hl = { - _to = function() - local _, escseq = require("fzf-lua.utils").ansi_from_hl("FzfLuaPath", "foo") - return [[ - return function(s, _, m) - return "]] .. (escseq or "") .. [[" - .. s .. m.utils.ansi_escseq.clear - end - ]] - end, - }, - }, - }, }) end, keys = {