What colours the line and column numbers in the diagnostic, lsp_references and lsp_definition pickers? #1153
Replies: 3 comments 1 reply
-
The line and column colors are hardcoded using blue and green terminal colors similar to the output of fzf-lua/lua/fzf-lua/make_entry.lua Lines 254 to 255 in 7a2d984 I suppose I could use |
Beta Was this translation helpful? Give feedback.
-
@alunturner, 40cf21d should solve your issue. Default colors are linked to You can either set these via regular hl links, e.g: :hi! link FzfLuaPathLineNr ErrorMsg
:hi! link FzfLuaPathColNr IncSearch Or via :FzfLua quickfix hls.path_linenr=ErrorMsg hls.path_colnr=IncSearch The new hl groups apply to all pickers where the hardcoded line/col were used (not in grep though as this is controlled by
|
Beta Was this translation helpful? Give feedback.
-
Hi @ibhagwan, thanks so much for this! Thanks for the fix but thanks more generally for writing and maintaining this excellent plugin, I really enjoy using it. |
Beta Was this translation helpful? Give feedback.
-
I'm currently trying to produce a grey scale neovim setup that only uses colour for errors and warnings. Currently working on fzf-lua. My config is here: https://github.com/alunturner/.dotfiles/blob/b23791909559c50200feb6e107a43ba7d481cbeb/nvim/.config/nvim/lua/plugins/finder.lua#L23
I'm close, but I have the following issue. I can not remove the line (green) and column (blue) number colouring from the pickers mentioned in the title. The only way I've found of doing it is additionally using
fzf_opts
to set--color=bw
. This works... but it also knocks out the colour in the diagnostics (which I'm trying to keep).I've looked at the fzf-lua documentation and profiles, man fzf, man rg but I just can't pin down where it comes from. I suppose it could even be encoded in the lap output.
Any suggestions for removing the blue and green much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions