mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-29 07:05:30 +02:00
fix: fix path formatting for grep
This commit is contained in:
parent
6761d8efc8
commit
9cc5d3df50
1 changed files with 18 additions and 0 deletions
|
@ -63,6 +63,8 @@ return {
|
||||||
end
|
end
|
||||||
fix(defaults)
|
fix(defaults)
|
||||||
|
|
||||||
|
vim.api.nvim_set_hl(0, "FzfLuaPath", { link = "Directory", default = true })
|
||||||
|
|
||||||
return vim.tbl_deep_extend("force", opts, defaults, {
|
return vim.tbl_deep_extend("force", opts, defaults, {
|
||||||
fzf_colors = true,
|
fzf_colors = true,
|
||||||
files = {
|
files = {
|
||||||
|
@ -73,11 +75,27 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
grep = {
|
grep = {
|
||||||
|
formatter = "path.hl",
|
||||||
actions = {
|
actions = {
|
||||||
["alt-i"] = { actions.toggle_ignore },
|
["alt-i"] = { actions.toggle_ignore },
|
||||||
["alt-h"] = { actions.toggle_hidden },
|
["alt-h"] = { actions.toggle_hidden },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
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,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue