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 for scrollbar_highlight and scrollbar_thumb_highlight
lua/cmp/config/window.lua: Added entries in the settings table returned by window.bordered() for scrollbar_highlight and scrollbar_thumb_highlight
lua/cmp/utils/window.lua: in window.update(), retrieve the default or user-customized values for scrollbar_highlight and scrollbar_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: Defined scrollbar_highlight and scrollbar_thumb_highlight in cmp.WindowConfig class.
This PR adds two config options to
window.completion
which allow the user to override the default highlight groups for thewinhighlight
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