From 6273b6d43aedc6b00b82e1081db14c39194da765 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Thu, 13 Apr 2023 00:39:31 -0400 Subject: nvim: redo the whole thing reasons tm --- dot_config/nvim/lua/plugins/nvim-cmp.lua | 47 -------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 dot_config/nvim/lua/plugins/nvim-cmp.lua (limited to 'dot_config/nvim/lua/plugins/nvim-cmp.lua') diff --git a/dot_config/nvim/lua/plugins/nvim-cmp.lua b/dot_config/nvim/lua/plugins/nvim-cmp.lua deleted file mode 100644 index 197d830..0000000 --- a/dot_config/nvim/lua/plugins/nvim-cmp.lua +++ /dev/null @@ -1,47 +0,0 @@ ----@diagnostic disable:undefined-global - -local cmp = require 'cmp' -local snp = require 'snippy' - -local mappings = require('snippy.mapping') -vim.keymap.set('i', '', mappings.expand_or_advance(''), - { desc = 'snippy next' }) -vim.keymap.set('s', '', mappings.next(''), - { desc = 'snippy next' }) -vim.keymap.set({ 'i', 's' }, '', mappings.previous(''), - { desc = 'snippy prev' }) -vim.keymap.set('x', '', mappings.cut_text, - { remap = true, desc = 'snippy cut' }) -vim.keymap.set('n', 'g', mappings.cut_text, - { remap = true, desc = 'snippy cut' }) - -cmp.setup { - mapping = cmp.mapping.preset.insert { - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.abort(), - [''] = cmp.mapping.confirm { select = true }, - }, - snippet = { - expand = function(args) - snp.expand_snippet(args.body) - end, - }, - window = { - }, - sources = cmp.config.sources { - { name = 'nvim_lsp' }, - -- { name = 'conjure' }, - { name = 'snippy' }, - }, -} - -cmp.setup.cmdline(':', { - mapping = cmp.mapping.preset.cmdline(), - sources = cmp.config.sources({ - { name = 'path' }, - }, { - { name = 'cmdline' }, - }) -}) -- cgit v1.2.3