hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.88k stars 394 forks source link

docs: suggest a better way to configure LSP capabilities #1754

Closed wookayin closed 9 months ago

wookayin commented 10 months ago

Using require('cmp_nvim_lsp').default_capabilities() alone will be not enough. We have to merge with the default LSP capabilities producced by vim.lsp.protocol.make_client_capabilities().

See also https://github.com/hrsh7th/cmp-nvim-lsp/pull/64

Closes #1265

liskin commented 9 months ago

As explained in https://github.com/hrsh7th/cmp-nvim-lsp/issues/44#issuecomment-1848796332 (https://github.com/hrsh7th/cmp-nvim-lsp/pull/64#issuecomment-1848796481), this doesn't seem to be necessary.

hrsh7th commented 9 months ago

@liskin Thank you.