Skip to content

Commit

Permalink
fix: correctly use option depending on whether or not is_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Elize authored and Jonathan Elize committed Nov 2, 2024
1 parent edf22a8 commit c10c415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/cmp/utils/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ end
window.update = function(self)
local info = self:info()
if info.scrollable and self.style.height > 0 then
local scrollbar_winhighlight = self.is_doc and config.get().window.completion.scrollbar_winhighlight or config.get().window.documentation.scrollbar_winhighlight
local scrollbar_thumb_winhighlight = self.is_doc and config.get().window.completion.scrollbar_thumb_winhighlight or config.get().window.documentation.scrollbar_thumb_winhighlight
local scrollbar_winhighlight = self.is_doc and config.get().window.documentation.scrollbar_winhighlight or config.get().window.completion.scrollbar_winhighlight
local scrollbar_thumb_winhighlight = self.is_doc and config.get().window.documentation.scrollbar_thumb_winhighlight or config.get().window.completion.scrollbar_thumb_winhighlight
-- Draw the background of the scrollbar

if not info.border_info.visible then
Expand Down

0 comments on commit c10c415

Please sign in to comment.