global layers.cmp#
methods#
CmpLayer.packages#
function CmpLayer.packages() -> (PackageSlug|Package)[]CmpLayer.dependencies#
function CmpLayer.dependencies() -> LayerId[]CmpLayer.preload#
function CmpLayer.preload() -> nilCmpLayer.load#
function CmpLayer.load() -> nilCmpLayer.add_source#
function CmpLayer.add_source(source: table) -> nil@param source - The source completion object
Adds a completion source object
CmpLayer.set_snippet#
function CmpLayer.set_snippet(snippet: table) -> nil@param snippet - The snippet object
Sets the completion snippet handler
fields#
CmpLayer.sources#
CmpLayer.sources: tableCmpLayer.snippet#
CmpLayer.snippet: tableCmpLayer.default_config#
CmpLayer.default_config: table