From 6c1c6ba2f5b45c0c3ba178ee34a9992ce23b7180 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Wed, 5 Jan 2022 15:35:38 +0100 Subject: ccls working as intended --- lua/cmp.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 lua/cmp.lua (limited to 'lua/cmp.lua') 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 = { - [''] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }), - [''] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }), - [''] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }), - [''] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `` mapping. - [''] = cmp.mapping({ - i = cmp.mapping.abort(), - c = cmp.mapping.close(), - }), - [''] = 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" }, - }, -}) -- cgit v1.2.3