From e94d3489311f941788756953df23ca84f83eec95 Mon Sep 17 00:00:00 2001 From: nat-418 <93013864+nat-418@users.noreply.github.com> Date: Sun, 16 Oct 2022 11:29:26 +0200 Subject: [PATCH] Fix undefined new() error in example source (#1237) --- doc/cmp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cmp.txt b/doc/cmp.txt index 2c587a5..e430190 100644 --- a/doc/cmp.txt +++ b/doc/cmp.txt @@ -783,7 +783,7 @@ Here is an example on how to create a custom source: end ---Register your source to nvim-cmp. - require('cmp').register_source('month', source.new()) + require('cmp').register_source('month', source) < ============================================================================== FAQ *cmp-faq*