nvim-cmp
nvim-cmp copied to clipboard
feat:allow highlight overrides for scrollbar and scrollbar thumb
This PR adds two config options to window.completion
which allow the user to override the default highlight groups for the winhighlight
of the scrollbar and the scrollbar thumb, which were previously hard-coded. The following files are changed:
-
lua/cmp/config/default.lua
: Added entries in default config table forscrollbar_highlight
andscrollbar_thumb_highlight
-
lua/cmp/config/window.lua
: Added entries in the settings table returned bywindow.bordered()
forscrollbar_highlight
andscrollbar_thumb_highlight
-
lua/cmp/utils/window.lua
: inwindow.update()
, retrieve the default or user-customized values forscrollbar_highlight
andscrollbar_thumb_highlight
, and use those when setting the window options (this is where the previous hard-coded values are replaced) -
lua/cmp/types/cmp.lua
: Definedscrollbar_highlight
andscrollbar_thumb_highlight
incmp.WindowConfig
class. -
doc/cmp.txt
: Updated documentation