diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-05 15:35:38 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-05 15:35:38 +0100 |
| commit | 6c1c6ba2f5b45c0c3ba178ee34a9992ce23b7180 (patch) | |
| tree | 48fad4a844d874303149f829db4a062634b10f79 /lua/cmp.lua | |
| parent | 2a5f4d72d21d495408a52a2cad271b1e5775967b (diff) | |
ccls working as intended
Diffstat (limited to 'lua/cmp.lua')
| -rw-r--r-- | lua/cmp.lua | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lua/cmp.lua b/lua/cmp.lua deleted file mode 100644 index ec6695f..0000000 --- a/lua/cmp.lua +++ /dev/null @@ -1,35 +0,0 @@ -local status, cmp = pcall(require, "cmp") -if not status then - return -end - -local status, luasnip = pcall(require, "luasnip") -if not status then - return -end - - -cmp.setup({ - snippet = { - expand = function(args) - luasnip.lsp_expand(args.body) - end, - }, - mapping = { - ['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }), - ['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }), - ['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }), - ['<C-y>'] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping. - ['<C-e>'] = cmp.mapping({ - i = cmp.mapping.abort(), - c = cmp.mapping.close(), - }), - ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. - }, - sources = { --- { name = 'nvim_lsp' }, --- { name = 'luasnip' }, --- { name = 'buffer' }, --- { name = "path" }, - }, -}) |
