Skip to content

Commit f3291db

Browse files
authored
feat(fzf): fix fzf integration (#1048)
## Description `<leader>snt` wasn't working properly - the same fzf compatibility update as #1034 - the hl_group update from #1032 but for `fzf.lua` Those PRs should probably merged instead of this, but the hl_group update one also needs to update `lua/noice/integrations/fzf.lua` Figured I'd submit this to bump visibility of the issue. ## Related Issue(s) #1029 #1024
1 parent 002b202 commit f3291db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/noice/integrations/fzf.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ function M.entry(message)
1919
for _, text in ipairs(line._texts) do
2020
---@type string?
2121
local hl_group = text.extmark and text.extmark.hl_group
22+
if type(hl_group) == "number" then
23+
hl_group = vim.fn.synIDattr(hl_group, "name")
24+
end
2225
hl[#hl + 1] = hl_group and fzf.utils.ansi_from_hl(hl_group, text:content()) or text:content()
2326
end
2427
return {

0 commit comments

Comments
 (0)