Home

Awesome

completion-vcard

vCard completion source for completion-nvim, nvim-compe, and nvim-cmp.

Usage

For completion-nvim:

require('completion_vcard').setup_completion('~/path/to/vcard/dir')

vim.g.completion_chain_complete_list = {
    { complete_items = { 'lsp', 'vCard' }},
    { mode = '<c-n>' }
}

For nvim-compe:

require('completion_vcard').setup_compe('~/path/to/vcard/dir')

require('compe').setup({
    source = {
        vCard = true,
        -- probably some other sources as well
    }
})

For nvim-cmp:

require('cmp').setup({
    -- ...
    sources = {
        { name = 'vCard' },
        -- ...
    },
})

require('cmp').register_source('vCard', require('completion_vcard').setup_cmp('~/path/to/vcard/dir'))