Fix undefined new() error in example source (#1237)
This commit is contained in:
@@ -783,7 +783,7 @@ Here is an example on how to create a custom source:
|
|||||||
end
|
end
|
||||||
|
|
||||||
---Register your source to nvim-cmp.
|
---Register your source to nvim-cmp.
|
||||||
require('cmp').register_source('month', source.new())
|
require('cmp').register_source('month', source)
|
||||||
<
|
<
|
||||||
==============================================================================
|
==============================================================================
|
||||||
FAQ *cmp-faq*
|
FAQ *cmp-faq*
|
||||||
|
|||||||
Reference in New Issue
Block a user