docs: clarify behavior of select in confirm mapping (#621)

Relates to #557
This commit is contained in:
Kai Howelmeyer
2021-12-07 10:01:36 +01:00
committed by GitHub
parent fab968f735
commit af07ff9b79
2 changed files with 4 additions and 0 deletions

View File

@@ -96,6 +96,8 @@ NOTE:
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
}),
-- Accept currently selected item. If none selected, `select` first item.
-- Set `select` to `false` to only confirm explicitly selected items.
['<CR>'] = cmp.mapping.confirm({ select = true }),
},
sources = cmp.config.sources({