aboutsummaryrefslogtreecommitdiff
path: root/cmp.lua
diff options
context:
space:
mode:
authorLeander <80996591+m0ntagur@users.noreply.github.com>2022-08-13 00:28:25 +0200
committerGitHub <noreply@github.com>2022-08-13 00:28:25 +0200
commit4f79ab55f3118d8f00a73923a9dd6a89693531b8 (patch)
tree26a41e436c1c7a77c85e80f824f72a76c432a965 /cmp.lua
parent9478bc795bccfc87157f7b319c233baa0c4d331c (diff)
Delete cmp.lua
Diffstat (limited to 'cmp.lua')
-rw-r--r--cmp.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/cmp.lua b/cmp.lua
deleted file mode 100644
index 09a2772..0000000
--- a/cmp.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local status, cmp = pcall(require, "cmp")
-if (not status) then return end
-
-local lspkind = require 'lspkind'
-
-cmp.setup({
- snippet = {
- expand = function(args)
- require('luasnip').lsp_expand(args.body)
- end,
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-d>'] = cmp.mapping.scroll_docs(-4),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-Space>'] = cmp.mapping.complete(),
- ['<C-e>'] = cmp.mapping.close(),
- ['<CR>'] = cmp.mapping.confirm({
- behavior = cmp.ConfirmBehavior.Replace,
- select = true
- }),
- }),
- sources = cmp.config.sources({
- { name = 'nvim_lsp' },
- { name = 'buffer' },
- }),
- formatting = {
- format = lspkind.cmp_format({ with_text = false, maxwidth = 50 })
- }
-})
-
-vim.cmd [[
- set completeopt=menuone,noinsert,noselect
- highlight! default link CmpItemKind CmpItemMenuDefault
-]] \ No newline at end of file