Skip to content

Help: color on fzf register_ui_select items #1513

Answered by ibhagwan
serranomorante asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use terminal ansi escape sequences, you can use fzf-lua's own utils to convert neovim hl to an ansi escape sequence:

:= require("fzf-lua").utils.ansi_from_hl("IncSearch", "text")
-- First ret val should be the wrapped string, something like:
-- ^[[48;2;255;203;139m^[[38;2;1;22;39mtext^[[0m

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@serranomorante
Comment options

Answer selected by serranomorante
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants