Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu's scrollbar overlaping the documentation #828

Closed
2 tasks done
Sirikakire opened this issue Dec 31, 2024 · 0 comments
Closed
2 tasks done

Menu's scrollbar overlaping the documentation #828

Sirikakire opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working windows Module which displays UI

Comments

@Sirikakire
Copy link

Sirikakire commented Dec 31, 2024

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

In this picture, a part of the documentation has been hidden because of the scrollbar, I think it was because all of its border had gone because of my config

image

I frequently change my border style, but when changing to the last style in this picture, the scrollbar overlap the documentation (I also tested it with cmp and its never happend)

image

Honestly this is not big of a deal but if it would be great if the documentation can exclude to the side 1 more column to avoid the menu's scrollbar overlapping

Relevant configuration

menu = {
          scrollbar = true,
          scrolloff = 2,
          border = require("utils").border,
          winhighlight = "Normal:NormalFloat,FloatBorder:FloatBorder,CursorLine:PmenuSel,Search:None",
          draw = {
            padding = 1,
            gap = 2,
          }
        },

U.border = vim.b.doc_border_type == "single" and {
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
} or vim.b.doc_border_type == "double" and {
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
  { "", "FloatBorder" },
} or vim.b.doc_border_type == "padding" and {
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
  { " ", "NormalFloat" },
} or {
  { "", "" },
  { "", "" },
  { "", "" },
  { "", "" },
  { "", "" },
  { "", "" },
  { "", "" },
  { "", "" },
}


### neovim version

0.10.3

### `blink.cmp` version: branch, tag, or commit

main
@Sirikakire Sirikakire added the bug Something isn't working label Dec 31, 2024
@Saghen Saghen added the windows Module which displays UI label Dec 31, 2024
@Saghen Saghen closed this as completed in ecbac4b Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Module which displays UI
Projects
None yet
Development

No branches or pull requests

2 participants