blob: 8f9dae223dacd40cefc43736f95fb83e861b48b8 (
plain) (
tree)
|
|
local cmp = require('cmp')
cmp.setup({
mapping = {
['<C-j>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 'c' }),
['<C-k>'] = cmp.mapping(cmp.mapping.select_prev_item(), { 'i', 'c' }),
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
-- ['<C-l>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
-- ['<CR>'] = cmp.mapping.confirm({ select = true })
},
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
-- { name = 'cmdline' },
{ name = 'path' },
{ name = 'calc' }
},
{
{ name = 'buffer' }
})
})
cmp.setup.cmdline('/', {
sources = {
{ name = 'buffer' }
}
})
|