Skip to content

Using 'update_capabilities' function in neovim 7.2 is a breaking change #36

@Issafalcon

Description

@Issafalcon

Hi!

Firstly, thanks to all your hard work making these cmp plugins. They are a huge boost to developer workflow in Neovim!

So, I just did PackerSync (because it's the weekend) and got the latest updates. I am still on neovim 0.7.2, but I imagine this works fine on 0.8.0.

Before updating my config to use the new default_capabilities function, I get this error:

E5113: Error while calling lua chunk: ...pack/packer/start/cmp-nvim-lsp/lua/cmp_nvim_lsp/init.lua:51: attempt to call field 'deprecate' (a nil value)
stack traceback:
        ...pack/packer/start/cmp-nvim-lsp/lua/cmp_nvim_lsp/init.lua:51: in function 'update_capabilities'

It might be worth mentioning this in a breaking changes section somewhere, or using a backwards compatible way of telling the use that this function is deprecated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions