From 40c180d3b2f0b258ed1f8a8776854f5b84815acc Mon Sep 17 00:00:00 2001 From: SHA-5010 <95682647+sha5010@users.noreply.github.com> Date: Mon, 12 Dec 2022 23:46:41 +0900 Subject: [PATCH] config(cmp): simplify disabling scrollbar --- lua/plugins/configs/cmp.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index 2a7312d..917dacf 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -50,20 +50,12 @@ local function border(hl_name) } end -local cmp_window = require "cmp.utils.window" - -cmp_window.info_ = cmp_window.info -cmp_window.info = function(self) - local info = self:info_() - info.scrollable = false - return info -end - local options = { window = { completion = { side_padding = (cmp_style ~= "atom" and cmp_style ~= "atom_colored") and 1 or 0, winhighlight = "Normal:CmpPmenu,CursorLine:CmpSel,Search:PmenuSel", + scrollbar = false, }, documentation = { border = border "CmpDocBorder",