From 30d259327208bf2129724e7db22a912d8b9be6a2 Mon Sep 17 00:00:00 2001 From: emmanueltouzery Date: Sun, 13 Apr 2025 05:17:15 +0200 Subject: [PATCH] fix: handle winborder in neovim-0.11 (#2150) --- lua/cmp/utils/window.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/cmp/utils/window.lua b/lua/cmp/utils/window.lua index 1384150..bab230f 100644 --- a/lua/cmp/utils/window.lua +++ b/lua/cmp/utils/window.lua @@ -145,6 +145,7 @@ window.update = function(self) row = info.row, col = info.col + info.width - info.scrollbar_offset, -- info.col was already contained the scrollbar offset. zindex = (self.style.zindex and (self.style.zindex + 1) or 1), + border = "none", } if self.sbar_win and vim.api.nvim_win_is_valid(self.sbar_win) then vim.api.nvim_win_set_config(self.sbar_win, style) @@ -176,6 +177,7 @@ window.update = function(self) row = info.row + thumb_offset + (info.border_info.visible and info.border_info.top or 0), col = info.col + info.width - 1, -- info.col was already added scrollbar offset. zindex = (self.style.zindex and (self.style.zindex + 2) or 2), + border = "none", } if self.thumb_win and vim.api.nvim_win_is_valid(self.thumb_win) then vim.api.nvim_win_set_config(self.thumb_win, style)