mirror of
https://github.com/saadparwaiz1/cmp_luasnip
synced 2024-09-16 14:34:11 +02:00
doc on the feature/option
This commit is contained in:
parent
6c89ea483e
commit
37287e5619
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -38,3 +38,18 @@ sources = {
|
|||
This can also be configured on per-buffer basis as described in cmp's README
|
||||
[here](https://github.com/hrsh7th/nvim-cmp#how-to-disable-nvim-cmp-on-the-specific-buffer)
|
||||
and [here](https://github.com/hrsh7th/nvim-cmp#sources-type-tablecmpsourceconfig).
|
||||
|
||||
The same way you can de-/activate whether autosnippets should be included in the
|
||||
completion list or not (including them can be a bit problematic since when you
|
||||
select the entry, the text gets inserted and the snippet automatically
|
||||
triggers). This option defaults to `false` to be backwards compatible. Example:
|
||||
|
||||
```lua
|
||||
sources = {
|
||||
{ name = 'luasnip', option = { show_autosnippets = true } },
|
||||
-- more sources
|
||||
},
|
||||
```
|
||||
|
||||
Hint: If you want to just hide some autosnippets consider the `hidden` option of
|
||||
luaSnip
|
||||
|
|
Loading…
Reference in a new issue