From 56692f4249b29e528c1d267b4140966aadc8c4aa Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Wed, 11 Aug 2021 18:54:39 +0900 Subject: [PATCH] Add more documentation for source creation section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc640e2..761c263 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,8 @@ You should read [cmp types](/lua/cmp/types) and [LSP spec](https://microsoft.git - The `complete` function is required but others can be omitted. - The `callback` argument must always be called. - -You can use only `require('cmp')` in the custom source. +- The custom source only can use `require('cmp')`. +- The custom source can specify `word` property to CompletionItem. (It isn't an LSP specification but supported as a special case.) ```lua local source = {}