Update README.md
This commit is contained in:
@@ -80,6 +80,10 @@ lua <<EOF
|
|||||||
},
|
},
|
||||||
mapping = {
|
mapping = {
|
||||||
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
{ name = '...' },
|
||||||
|
...
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
EOF
|
EOF
|
||||||
@@ -123,6 +127,9 @@ lua <<EOF
|
|||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The configuration options will be merged with the default config.
|
||||||
|
If you want to remove the option, You can set the `false` instead.
|
||||||
|
|
||||||
#### mapping (type: table<string, fun(fallback: function)>)
|
#### mapping (type: table<string, fun(fallback: function)>)
|
||||||
|
|
||||||
Built in helper `cmd.mappings` are:
|
Built in helper `cmd.mappings` are:
|
||||||
@@ -212,7 +219,7 @@ source README which defines the source name as `buffer`.
|
|||||||
|
|
||||||
Which events should trigger `autocompletion`.
|
Which events should trigger `autocompletion`.
|
||||||
|
|
||||||
If you set this to empty or `false`, `nvim-cmp` will not perform completion
|
If you set this to `false`, `nvim-cmp` will not perform completion
|
||||||
automatically. You can still use manual completion though (like omni-completion
|
automatically. You can still use manual completion though (like omni-completion
|
||||||
via the `cmp.mapping.complete` function).
|
via the `cmp.mapping.complete` function).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user