From a229e43e5b14a3b59b3bb5a0a51809d6a95920c9 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 3 May 2025 00:25:45 +0200 Subject: [PATCH] fix(cmp): update completion/documentation window styles --- lua/ow/plugins/cmp.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lua/ow/plugins/cmp.lua b/lua/ow/plugins/cmp.lua index 85ed6fa..29706de 100644 --- a/lua/ow/plugins/cmp.lua +++ b/lua/ow/plugins/cmp.lua @@ -152,9 +152,22 @@ return { { name = "path" }, }, window = { - completion = cmp.config.window.bordered(), - documentation = cmp.config.window.bordered(), - } + completion = cmp.config.window.bordered({ + border = "none", + winhighlight = "Normal:Pmenu,CursorLine:PmenuSel,Search:None", + zindex = 1001, + scrolloff = 0, + col_offset = 0, + side_padding = 1, + scrollbar = true, + }), + documentation = cmp.config.window.bordered({ + border = "rounded", + winhighlight = "CursorLine:Visual,Search:None", + zindex = 1001, + max_height = 80, + }), + }, } cmp.setup(opts)