Skip to content

Commit

Permalink
feat(fzf): fix fzf integration (#1048)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
aaronlifton authored Feb 6, 2025
1 parent 002b202 commit f3291db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/noice/integrations/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ function M.entry(message)
for _, text in ipairs(line._texts) do
---@type string?
local hl_group = text.extmark and text.extmark.hl_group
if type(hl_group) == "number" then
hl_group = vim.fn.synIDattr(hl_group, "name")
end
hl[#hl + 1] = hl_group and fzf.utils.ansi_from_hl(hl_group, text:content()) or text:content()
end
return {
Expand Down

0 comments on commit f3291db

Please sign in to comment.