Add source name to README.md

This commit is contained in:
hrsh7th 2021-08-25 15:35:57 +09:00
parent 6d991d0f7b
commit e9587cde00
1 changed files with 8 additions and 1 deletions

View File

@ -2,9 +2,16 @@
nvim-cmp source for neovim builtin LSP client
# setup
# Setup
```lua
require'cmp'.setup {
sources = {
{ name = 'nvim_lsp' }
}
}
-- 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.textDocument.completion.completionItem.snippetSupport = true