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.
![PXL_20240428_195816297~2](https://private-user-images.githubusercontent.com/56027671/326291696-bb9302a5-c2dc-421a-89b2-9ba46289c92e.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzOTAyNDIsIm5iZiI6MTcxODM4OTk0MiwicGF0aCI6Ii81NjAyNzY3MS8zMjYyOTE2OTYtYmI5MzAyYTUtYzJkYy00MjFhLTg5YjItOWJhNDYyODljOTJlLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE0VDE4MzIyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1NGUzNjExZWNkY2U2N2M3MGU0Y2Q3NjQ5MTZjMGY4ZDkyNGQ0ZTcwY2IzMTM5YTMyMmRmMWJhZTcxZWU2MjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Y-mMUo1RyQtT_jNnyu7Kras5r_WGtGuw6iXhD1Au7Gw)
Beta Was this translation helpful? Give feedback.
All reactions