Add source name to README.md
This commit is contained in:
parent
6d991d0f7b
commit
e9587cde00
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue