From d09abcf8b309f3d3902749d4b2ed5ab344a8d697 Mon Sep 17 00:00:00 2001 From: Freddie Haddad Date: Sat, 21 May 2022 11:52:21 -0700 Subject: [PATCH] fix: update hide scrollbar logic to work with cmp --- lua/plugins/configs/cmp.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index 45a10c7..c587eb1 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -21,8 +21,11 @@ end local cmp_window = require "cmp.utils.window" -function cmp_window:has_scrollbar() - return false +cmp_window.info_ = cmp_window.info +cmp_window.info = function(self) + local info = self:info_() + info.scrollable = false + return info end local options = {