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

Inconsistent documentation window location #1181

Closed
2 tasks done
antonk52 opened this issue Feb 8, 2025 · 0 comments
Closed
2 tasks done

Inconsistent documentation window location #1181

antonk52 opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something isn't working windows Module which displays UI

Comments

@antonk52
Copy link

antonk52 commented Feb 8, 2025

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

From the video below it seems like the location of the documentation window is based on which side it can fit first (maybe?). This could explain why the location can change through out navigating in a single completion menu. Ideally it would pick the largest side from the available ones and always display documentation there

Screen.Recording.2025-02-08.at.22.45.42.mov

Relevant configuration

{
        'saghen/blink.cmp',
        version = 'v0.*',
        opts = {
            completion = {
                menu = {
                    draw = {
                        columns = {
                            { 'label', 'label_description', gap = 2 },
                            { 'kind_icon', 'kind', gap = 1 },
                        },
                    },
                },
                documentation = {
                    auto_show = true,
                    window = {
                        border = 'single',
                        direction_priority = {
                            menu_north = { 'e', 'n' },
                            menu_south = { 'e', 'n' },
                        },
                    },
                },
            },
        },
    },

neovim version

v0.10.4

blink.cmp version

v0.11.0

@antonk52 antonk52 added the bug Something isn't working label Feb 8, 2025
@Saghen Saghen closed this as completed in 2fb514b Feb 20, 2025
@Saghen Saghen added the windows Module which displays UI label Feb 20, 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