Layers.cmp

layers.cmp #


methods #


M.packages #


function M.packages() ->  ("hrsh7th/nvim-cmp",table,table,table)

M.dependencies #


function M.dependencies() ->  (("lsp")|table)

M.preload #


function M.preload() ->  nil

M.load #


function M.load() ->  nil

M.add_source #


function M.add_source(source: table) ->  nil

@param source - The source completion object

Adds a completion source object

M.set_snippet #


function M.set_snippet(snippet: table) ->  nil

@param snippet - The snippet object

Sets the completion snippet handler

fields #


M.sources #


M.sources: table

M.snippet #


M.snippet: table

M.default_config #


M.default_config: {
    buffer: boolean = false,
    lsp: boolean = true,
    lspkind: boolean = true,
    mapping: { <C-d> = fun(cmp), <C-f> = fun(cmp), <C-Space> = fun(cmp), ... },
    config: { experimental = table,  },
    lspkindconfig: { with_text = false, max_width = 65,  },
}