Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

nvim-cmp documentation deprecation issue

Open Rathersilly opened this issue 3 years ago • 3 comments

On nvim startup I got this message: [nvim-cmp] documentation is deprecated. [nvim-cmp] Please use window.documentation= "native" instead.

This lead to an error message when pressing tab to autocomplete (bad arguments in a nvim-cmp lua function). The deprecated feature is documented here: https://github.com/hrsh7th/nvim-cmp/issues/231#issuecomment-1098149666

Changing this code in lua/user/cmp.lua from:

documentation = {
    border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
},

to

window = {
    documentation = {
        border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
        }
},

fixed the issue for me. Hope this helps someone, and this project is awesome!

Rathersilly avatar Apr 19 '22 20:04 Rathersilly

Just saw this, you can do this a bit simpler by using this code:

  window = {
    documentation = cmp.config.window.bordered(),
  }

I submitted a PR containing this #117

aflyingpumpkin avatar Apr 22 '22 01:04 aflyingpumpkin

#112 and #115 also fix this using the method mentioned here.

aflyingpumpkin avatar Apr 22 '22 01:04 aflyingpumpkin

So does #146. Maybe we can get one of them merged soon.

brianrobt avatar May 11 '22 14:05 brianrobt