Skip to content

How to fix this color issue on path.filename_first? #1175

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

You must be logged in to vote

e32f3df

The above commit defines a new highlight group FzfLuaDirPart (linked to Comment by default):

Can be linked to anything

:hi! link FzfLuaDirPart IncSearch

defined in setup

require("fzf-lua").setup({
  hls = { dir_part = "IncSearch" }
})

Or sent directly in a call

:FzfLua live_grep formatter=path.filename_first hls.dir_part=ErrorMsg

FYI, for an easy way to set this for all pickers that contain path entries, use global picker defaults in setup.defaults:

require("fzf-lua").setup({
  defaults = { formatter = "path.filename_first" },
  -- rest of your setup
})

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

Answer selected by ibhagwan
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