From f60b4dc97bf7204a5bc3fe316df2ce4bd709babd Mon Sep 17 00:00:00 2001 From: Leander <80996591+m0ntagur@users.noreply.github.com> Date: Sat, 22 Jul 2023 15:38:23 +0200 Subject: Delete nvim directory --- nvim/plugin/cmp.lua | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 nvim/plugin/cmp.lua (limited to 'nvim/plugin/cmp.lua') diff --git a/nvim/plugin/cmp.lua b/nvim/plugin/cmp.lua deleted file mode 100644 index 09a2772..0000000 --- a/nvim/plugin/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({ - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.close(), - [''] = 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 -- cgit v1.3.1