Skip to content

Error when hovering over buffer source in completion list #211

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

Closed
2 tasks done
Euro20179 opened this issue Oct 29, 2024 · 0 comments
Closed
2 tasks done

Error when hovering over buffer source in completion list #211

Euro20179 opened this issue Oct 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Euro20179
Copy link
Contributor

Make sure you have done the following

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

Bug Description

When hovering over a buffer item in the completion list, an error is shown /lua/blink/cmp/windows/documentation.lua:53: attempt to index local 'item' (a nil value)

I fixed this by simply adding item == nil or to the start of the if statement on line 53.

I'm not sure why item is nil in the first place though.

Relevant configuration

sources = {
    completion = {
        enabled_providers = { "lsp", "path", "snippets", "buffer" }
    },
}


### neovim version

NVIM v0.11.0-dev-1065+gff93cccbc1

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

HEAD (a62b555)
@Euro20179 Euro20179 added the bug Something isn't working label Oct 29, 2024
@Saghen Saghen closed this as completed in 6f0fc86 Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant