-
Notifications
You must be signed in to change notification settings - Fork 52
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
Announcement: Breaking changes #38
Comments
cmp_nvim_lsp.update_capabilities is deprecated #36 local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()) ↓↓↓ local capabilities = require("cmp_nvim_lsp").default_capabilities() |
this still seems breaking the cmp |
I don't have any issue on 0.8. |
i just upgrade to 0.8 this seem to break all my typescript lsp lol |
Today's crazy update on cmp-nvim-lsp makes nvim-cmp completely broken on 'stable' versions of neovim. Pin at the correctly working version. Ref hrsh7th/cmp-nvim-lsp#38
After upgrading today to the latest Neovim version (v0.9.0-dev nightly), and the latest plugins (managed by |
I love having random breaking changes for no reason at all |
cmp_nvim_lsp.update_capabilities is deprecated hrsh7th/cmp-nvim-lsp#38
I think a big part of the benefit of an announcements thread like this is being able to subscribe and hear when you need to look into changes. If it turns into a support thread, fewer people will subscribe and get that valuable information. May I suggest that the thread be locked so that only contributors can post changes, and other questions or problems be raised in new issues? Similar to the pinned nvim-cmp issue that was linked above. |
More details: hrsh7th/cmp-nvim-lsp#38
References: hrsh7th/cmp-nvim-lsp#38 Signed-off-by: Fletcher Nichol <[email protected]>
Cmp thing: hrsh7th/cmp-nvim-lsp#38 (comment) Packer thing: wbthomason/packer.nvim#1090
This worked for me and removed the warning |
This solution doesn't work for me. It provides an incomplete list of capabilities which causes problems with some LSPs like tsserver. This works better: local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion = require('cmp_nvim_lsp').default_capabilities().textDocument.completion |
I would suggest, one should actually do in your config like: local capabilities = vim.tbl_deep_extend("force",
vim.lsp.protocol.make_client_capabilities(),
require('cmp_nvim_lsp').default_capabilities()
) This will be a more general approach. No need to rely on the implementation detail that Explanation: vim.lsp.protocol.make_client_capabilities().textDocument.completion-- As of neovim 0.10 nightly
{
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = false,
documentationFormat = { "markdown", "plaintext" },
preselectSupport = false,
snippetSupport = false
},
completionItemKind = {
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }
},
contextSupport = false,
dynamicRegistration = false
} require('cmp_nvim_lsp').default_capabilities(){
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = true,
deprecatedSupport = true,
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1, 2 }
},
labelDetailsSupport = true,
preselectSupport = true,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "sortText", "filterText", "insertText", "textEdit", "insertTextF
ormat", "insertTextMode" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
dynamicRegistration = false,
insertTextMode = 1
}
}
} |
* Fixes some completion snippets not working properly, especially functions w/o arguments would not complete the empty parenthesis. * Thanks @wookayin via hrsh7th/cmp-nvim-lsp#38 (comment)
When I do this the lua lsp complains about setting
|
It would be nice if there was an issue such as in hrsh7th/nvim-cmp#231 for breaking changes announcements
The text was updated successfully, but these errors were encountered: