mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:10:06 +08:00
fix(cmp): remove deprecated function
This commit is contained in:
parent
7c656469bf
commit
1c1d63d923
@ -41,12 +41,4 @@ lua <<EOF
|
||||
{ name = 'path' },
|
||||
})
|
||||
})
|
||||
-- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers..
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
|
||||
|
||||
-- The following example advertise capabilities to `clangd`.
|
||||
require'lspconfig'.clangd.setup {
|
||||
capabilities = capabilities,
|
||||
}
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user